Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#21913 closed Bug (worksforme)

Error 400 without any information if user uploads file to STATIC_ROOT

Reported by: cyborg4006@… Owned by: nobody
Component: File uploads/storage Version: 1.6
Severity: Normal Keywords: upload, 400
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 user uploads file (at least from admin interface), and path to save of the file coincides with STATIC_ROOT, server response error 400 (bad request). Django no way says about the error is. It took me a very long time to understand the settings and nginx uwsgi, and only thanks to the intuition I have determined what is the error. Please, at least say about it feature in the comments of settings.py file.

Change History (2)

comment:1 by Tim Graham, 10 years ago

Resolution: worksforme
Status: newclosed

I'm sorry you ran into the issue. This is addressed in settings documentation for MEDIA_ROOT. We're trying not to put a lot of documentation in settings.py.

comment:2 by cyborg4006@…, 10 years ago

Oh, I didn't know that there is a detailed documentation on "settings.py" file. Thank you.

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