django handling file uploads - target different than media folder
- by Tom Tom
Hi,
I want to enable the user to upload media which will not be saved in the media folder. When I use the following line of code data will be uploaded to media/upload/logo .
logo_img = models.FileField(upload_to='upload/logo', blank=True)
I'm wondering how I can change this behaviour.
I would try to write a custom FileField and a view that…