See if the file field's name in your model matches with f.file.name.
Ex
The name is myfile, so it's f.myfile.name
On Sun, Aug 28, 2022, 23:17 Hind Djebbar <hind.djebbar1997@gmail.com> wrote:
can anyone helps me please it does not work --
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0e99a673-0e5a-4539-ba9b-1b8e55a15544n%40googlegroups.com.
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 view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAF7qQgCqYvWLRdyt__VVoeY1PVgo9stw%3DTQRG9gX_p4SSmMgjw%40mail.gmail.com.
No comments:
Post a Comment