acceptedFile is not usable due to type being empty from browser.

This commit is contained in:
Skyler Mäntysaari
2023-02-05 05:07:57 +02:00
parent b4da8d07d1
commit c72abbde2b
+6 -4
View File
@@ -55,11 +55,13 @@ export const fileUploadHandler = async (
return; return;
} }
const acceptedFile = files.filter( // NOT USABLE, due to type being empty on .srw and .raf files and
(e) => e.type.split('/')[0] === 'video' || e.type.split('/')[0] === 'image' // since it's readonly field.
); // const acceptedFile = files.filter(
// (e) => e.type.split('/')[0] === 'video' || e.type.split('/')[0] === 'image'
// );
for (const asset of acceptedFile) { for (const asset of files) {
await fileUploader(asset, albumId, sharedKey, onDone); await fileUploader(asset, albumId, sharedKey, onDone);
} }
}; };