That was it, thank you!
On Thu, May 3, 2018 at 12:35 PM, Andréas Kühne
wrote:
> Hi,
>
> The problem isn't CBV's, it's probably your template.
>
> You have the following:
>
>
> But it should be:
>
>
> Otherwise the browser doesn't know how to encode the files
>
> Regards,
>
> Andréas
>
>
Hi,
The problem isn't CBV's, it's probably your template.
You have the following:
But it should be:
Otherwise the browser doesn't know how to encode the files
Regards,
Andréas
2018-05-03 18:44 GMT+02:00 Alexander Joseph :
> I'm using CBVs and trying to upload a file with a FileField
I'm using CBVs and trying to upload a file with a FileField. It seems to
work in admin but not in my template. It doesnt give any errors when
creating the record and it saves the rest of the data in the form, but it
doesnt save the attachment
Heres my model
class LaserMaskDesign(models.Model):
3 matches
Mail list logo