mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00: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
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ export const fileUploadHandler = async (
|
||||||
sharedKey: string | undefined = undefined,
|
sharedKey: string | undefined = undefined,
|
||||||
) => {
|
) => {
|
||||||
const iterable = {
|
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]() {
|
async *[Symbol.asyncIterator]() {
|
||||||
for (const file of this.files) {
|
for (const file of this.files) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue