Skip to content

Commit

Permalink
Mobile: Fixes #1684: Trying to fix problem when attaching file that c…
Browse files Browse the repository at this point in the history
…ontains spaces in name
  • Loading branch information
laurent22 committed Jul 21, 2019
1 parent b65767a commit 3aa0394
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 5 additions & 1 deletion ReactNativeClient/lib/components/screens/note.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,11 @@ class NoteScreenComponent extends BaseScreenComponent {
return;
}

const localFilePath = pickerResponse.uri;
const localFilePath = Platform.select({
android: pickerResponse.uri,
ios: decodeURI(pickerResponse.uri),
});

let mimeType = pickerResponse.type;

if (!mimeType) {
Expand Down
2 changes: 0 additions & 2 deletions ReactNativeClient/lib/components/screens/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ class NotesScreenComponent extends BaseScreenComponent {
notes: notes,
notesSource: source,
});

console.info('Done', Date.now() - startTime);
}

deleteFolder_onPress(folderId) {
Expand Down

0 comments on commit 3aa0394

Please sign in to comment.