Skip to content

File upload is sensitive on file extension #17682

Description

@alecslupu

Describe the bug

When i go to any file upload place, the system validates the file name, ignoring the case. I have tried to upload IMG_0059.JPG and i got an error. Uploading IMG_0059.jpg works fine.

To Reproduce

  1. Go to main site
  2. Login as user@decidim.org
  3. Go to profile / authorization
  4. On identity documents page fill in the data
  5. Upload an uppercase extension file
  6. See the error
  7. upload the same file with lower case extension (see the attached zip for images that i have used)
  8. See is working

Expected behavior

The file upload should be able to accept the both image casing

Screenshots

Image Image

Stacktrace

No response

Extra data

  • Device: PC
  • Device OS: Ubuntu
  • Browser: Firefox
  • Decidim Version: 0.33.dev
  • Decidim installation: Local

Additional context

tulips.zip

The image used is taken by me, back on 2011, and comes from my personal archive

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

  • Status
    In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions