1
0
mirror of https://github.com/immich-app/immich.git synced 2024-11-28 09:33:27 +02:00

fix(web): cannot upload file with uppercase extension (#3374)

* fix(web): cannot upload file with uppercase extension

* actual fix

* remove console log
This commit is contained in:
Alex 2023-07-21 22:52:28 -05:00 committed by GitHub
parent 5e6d830ecd
commit 82a5d54d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ export const fileUploadHandler = async (
sharedKey: string | undefined = undefined,
) => {
const iterable = {
files: files.filter((file) => extensions.some((ext) => file.name.endsWith(ext)))[Symbol.iterator](),
files: files.filter((file) => extensions.some((ext) => file.name.toLowerCase().endsWith(ext)))[Symbol.iterator](),
async *[Symbol.asyncIterator]() {
for (const file of this.files) {