mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
acceptedFile is not usable due to type being empty from browser.
This commit is contained in:
parent
b4da8d07d1
commit
c72abbde2b
1 changed files with 6 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue