mirror of
https://github.com/immich-app/immich.git
synced 2026-02-09 11:20:00 +03:00
acceptedFile is not usable due to type being empty from browser.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user