#8793 closed (duplicate)
using the file.url can not download the uploaded file
Reported by: | etng | Owned by: | nobody |
---|---|---|---|
Component: | File uploads/storage | Version: | dev |
Severity: | Keywords: | normcase path | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
when I digg into the source code,I found that in line 47 of django.db.models.fields.files,the call to self.storage.path(self.name) returns a os.path.normpath processed file path, it changes the file's full path to all lower case, but the url is not following this change, so this error happens!
sorry, I can not submit a good patch for it,but I think it will resolved by you gurus.
thank you
Note:
See TracTickets
for help on using tickets.
Duplicate of #8593.