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

View File

@@ -55,11 +55,13 @@ export const fileUploadHandler = async (
return;
}
const acceptedFile = files.filter(
(e) => e.type.split('/')[0] === 'video' || e.type.split('/')[0] === 'image'
);
// NOT USABLE, due to type being empty on .srw and .raf files and
// 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);
}
};