mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
Mobile: When attaching a file to a note set correct title and extension (#4373)
This commit is contained in:
parent
df6d146c84
commit
59fe4a2193
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user