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:
parent
5e6d830ecd
commit
82a5d54d2c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user