Thursday, April 11, 2019

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

NOTE: in the handle_uploaded_file() function, the exact filename is: test.txt

On Thursday, 11 April 2019 15:11:03 UTC+2, kamiba...@gmail.com wrote:
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.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/133cf215-7cd9-43c0-91fa-dcb0e06835fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment