1
0
mirror of https://github.com/immich-app/immich.git synced 2024-12-31 11:32:55 +02:00

Remember to add the extensions to fileSelector.

This commit is contained in:
Skyler Mäntysaari 2023-02-09 23:41:34 +02:00
parent 8073c87bfa
commit 113a46ac32

View File

@ -22,7 +22,7 @@ export const openFileUploadDialog = (
// When adding a content type that is unsupported by browsers, make sure
// to also add it to getFileMimeType() otherwise the upload will fail.
fileSelector.accept = 'image/*,video/*,.heic,.heif,.dng,.3gp,.nef';
fileSelector.accept = 'image/*,video/*,.heic,.heif,.dng,.3gp,.nef,.srw,.raf';
fileSelector.onchange = async (e: Event) => {
const target = e.target as HTMLInputElement;