Django 2.1: Image upload form code displays no error - image not saved

21 views
Skip to first unread message

kamiba...@gmail.com

unread,
Apr 11, 2019, 9:11:03 AM4/11/19
to Django users
Hi,

You will find the relevant files (models.py and views.py) on the following link: https://pastebin.com/raw/UTfNRuXw

The above code works, the template is rendered with no errors. For some reasons, the image file is never saved.

Note: I was inspired by the following Django developer findings: https://community.webfaction.com/questions/607/deleting-fileimage-while-uploading-a-new-one

(If anybody has any functioning workaround, any help is welcome.)

Thanks,

K.

kamiba...@gmail.com

unread,
Apr 11, 2019, 9:44:48 AM4/11/19
to Django users
NOTE: in the handle_uploaded_file() function, the exact filename is: test.txt
Reply all
Reply to author
Forward
0 new messages