Re: request.FILES always empty

2009-01-05 Thread Marc Boivin
Thank you On Mon, Jan 5, 2009 at 3:39 PM, Alex Koshelev wrote: > > You don't set proper `enctype` to the form [1] > > [1]: > http://docs.djangoproject.com/en/dev/ref/forms/api/#binding-uploaded-files-to-a-form > > > On Mon, Jan 5, 2009 at 11:34 PM, Glimps

Re: request.FILES always empty

2009-01-05 Thread Alex Koshelev
You don't set proper `enctype` to the form [1] [1]: http://docs.djangoproject.com/en/dev/ref/forms/api/#binding-uploaded-files-to-a-form On Mon, Jan 5, 2009 at 11:34 PM, Glimps wrote: > > I'm using ModelForm to render my form. I have a FileField in my model > that shows

request.FILES always empty

2009-01-05 Thread Glimps
I'm using ModelForm to render my form. I have a FileField in my model that shows up as a type="file" on my page. Thing is, even if I select a file to upload Django always complains about the field being empty and my form never validates. Here's my model: class IOs(models.Model): name