diff --git a/packages/app-mobile/components/screens/Note.tsx b/packages/app-mobile/components/screens/Note.tsx index 652dc4fc8..5143d17ac 100644 --- a/packages/app-mobile/components/screens/Note.tsx +++ b/packages/app-mobile/components/screens/Note.tsx @@ -635,8 +635,8 @@ class NoteScreenComponent extends BaseScreenComponent { let resource = Resource.new(); resource.id = uuid.create(); resource.mime = mimeType; - resource.title = pickerResponse.fileName ? pickerResponse.fileName : ''; - resource.file_extension = safeFileExtension(fileExtension(pickerResponse.fileName ? pickerResponse.fileName : localFilePath)); + resource.title = pickerResponse.name ? pickerResponse.name : ''; + resource.file_extension = safeFileExtension(fileExtension(pickerResponse.name ? pickerResponse.name : localFilePath)); if (!resource.mime) resource.mime = 'application/octet-stream';