id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 22706,Debug error is not working fine when filepath is bad,gox21mx@…,nobody,"Write an upload_to_function that overrides the upload_to on models. Use MEDIA_ROOT/modelname/file.ext for that, on settings.py remove tha last slash (/) from MEDIA_ROOT. Write a model that have a field that have upload_to=upload_to_function It will cause that the complete url seems like: /MEDIA_ROOTmodelname/file.ext #clearly you see there is a slash (/) missing. Go to the admin and try to add a new object for the model that calls to upload_to_function you created on django 1.3 you'll got: SuspiciousOperation at /admin/app/model/add/ Attemped access to '/BASE_PATH/mediafolderfile.ext' denied on django 1.6.5 you'll got Bad Request (400) Definitively it is impossible to figure out what is causing the error on django 1.6.5",Bug,closed,File uploads/storage,1.6,Normal,duplicate,Debug,,Unreviewed,0,0,0,0,0,0