Skip to content

Commit

Permalink
Mobile: When attaching a file to a note set correct title and extensi…
Browse files Browse the repository at this point in the history
…on (#4373)
  • Loading branch information
roman-r-m authored Jan 17, 2021
1 parent df6d146 commit 59fe4a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/app-mobile/components/screens/Note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down

0 comments on commit 59fe4a2

Please sign in to comment.