One thing that can be done is to save the image as a base64 string in the database. https://stackoverflow.com/questions/3715493/encoding-an-image-file-with-base64

 

Sent from Mail for Windows 10

 

From: MUGOYA DIHFAHSIH
Sent: 14 June 2020 19:15
To: Django users
Subject: Django Saving a form with Imagefield on shared host

 

I am working on django project and now i have deployed it with Namecheap

When i submit a form that does not have an ImageField, the form submits successfully on the shared host

but when i submit a form with one of the fields ImageField, it raises 404 error.

but on the localhost, the forms work perfectly.

what can i do to submit such forms on a shared host.

Thanks.

 

--
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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b79bb9b5-46b4-43eb-9ea5-3eaab14336ddo%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 [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3F4C1D42-FB11-49A2-8A6E-BF990EE847AD%40hxcore.ol.

Reply via email to