Saturday, June 19, 2010

Re: How can I debug file uploads?

It was not before, but I added the line; so the form looks like:

<form method="post" enctype="multipart/form-data" action="/projects/
files/add/{{ prjID }}/">

...and still no dice - there isn't anything in the request.FILES
dictionary.

On Jun 20, 12:59 am, Kenneth Gonsalves <law...@au-kbc.org> wrote:
> On Sunday 20 June 2010 10:20:16 Joshua Kramer wrote:>  I have a page with a file upload field.  When I submit the page, it
> > appears that the browser is not sending the file data.  That is,
> > when I submit the form, the
>
> > request.FILES{}
>
> > dictionary contains no file data.  What do I need to look at in the
> > debugger to determine why it's missing?
>
> is this line in your template:
> form enctype="multipart/form-data"
> --
> Regards
> Kenneth Gonsalves
> Senior Associate
> NRC-FOSS at AU-KBC

--
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, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate