Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
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 AM
4/11/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
4/11/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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