mirror of
https://github.com/immich-app/immich.git
synced 2025-02-04 01:09:14 -05: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
Reference in a new issue