From b102e99f438b2fd5c3849bec90c434f67d75e7d0 Mon Sep 17 00:00:00 2001 From: Elias Nahum Date: Mon, 25 Jun 2018 11:45:07 -0400 Subject: [PATCH] Fix uploading files with blank spaces in the filename (#1821) --- app/components/attachment_button.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/components/attachment_button.js b/app/components/attachment_button.js index 189f0c612..b23960eb7 100644 --- a/app/components/attachment_button.js +++ b/app/components/attachment_button.js @@ -166,6 +166,9 @@ export default class AttachmentButton extends PureComponent { } } + // Decode file uri to get the actual path + res.uri = decodeURIComponent(res.uri); + this.uploadFiles([res]); }); }