Opened 16 months ago

Closed 16 months ago

Last modified 10 months ago

#34263 closed New feature (duplicate)

File validators for MIME type, size, and extension.

Reported by: Reza Shakeri Owned by: nobody
Component: File uploads/storage Version: 4.1
Severity: Normal Keywords: file, file validator, file validation, validator, file
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Reza Shakeri)

Hi, I wrote a file validator that can validation the files based on their MIME and their size and extension, and all of these sections are implemented using their Django own features. I wanted to see I could add this feature to Django and give Pull Request.
If you want to upload the code I wrote for this file validator to check out more.

Change History (6)

comment:1 by Reza Shakeri, 16 months ago

Description: modified (diff)

comment:2 by Reza Shakeri, 16 months ago

Description: modified (diff)

comment:3 by Reza Shakeri, 16 months ago

Description: modified (diff)

comment:4 by Reza Shakeri, 16 months ago

Description: modified (diff)

comment:5 by Mariusz Felisiak, 16 months ago

Resolution: wontfix
Status: newclosed
Summary: file validatorFile validators for MIME type, size, and extension.

Thanks for this ticket, however I think it is a good candidate for a third-party package. The current thread is to keep Django a core framework, not providing every validator which might be useful. Please write to the DevelopersMailingList if you want other opinions, and follow the triaging guidelines with regards to wontfix tickets.

comment:6 by Mariusz Felisiak, 10 months ago

Resolution: wontfixduplicate

Duplicate of #33942.

Note: See TracTickets for help on using tickets.
Back to Top