On 6/3/07, cesco <[EMAIL PROTECTED]> wrote:
>
> I created a form for adding Offer objects as follows:
>
> class AddOfferForm(forms.Form):
> picture = forms.CharField(widget=forms.FileInput())
File uploads aren't currently handled by the newforms framework. The
FileInput widget has been implem
> Can you tell us more info about your view code ?
Thanks for the quick response!
in the view I have the following
if request.method == 'POST':
form = AddOfferForm(request.POST)
if form.is_valid():
#new_offer = form.save()
Offer.objects.create(name=form.cleaned
Are you handling the file yourself? Are you using the save_FIELD_file
method of the image field?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-use
Can you tell us more info about your view code ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group
4 matches
Mail list logo