[FIX] Force mime type when the image does not have a filename (#4006)

This commit is contained in:
Alex Junior 2022-04-11 15:17:28 -03:00 committed by GitHub
parent b0d408ebc8
commit c6e0751581
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ class ShareView extends Component<IShareViewProps, IShareViewState> {
// Set a filename, if there isn't any // Set a filename, if there isn't any
if (!item.filename) { if (!item.filename) {
item.filename = new Date().toISOString(); item.filename = `${new Date().toISOString()}.jpg`;
} }
return item; return item;
}) })