On Fri, 2006-07-07 at 09:50 +0000, spako wrote:
> hi
> 
> i'm building a site with which will let the public upload files (after
> registration) to the site. i'm going to use flash to upload the files
> since the files will be large and with the new flash you can see the
> progress of an upload.
> 
> the uploader is in a view i have built. i'm expecting the upload to
> appear in request.FILES but that does not happen and an error occurs,
> is there something that needs to be set to allow this to happen? extra
> cookie info that needs to be sent maybe?

How does the Flash uploader (never used it) present the data to the
server side? Normally, a form with file uploads attached will be sent
with a MIME type of multipart/form-data and Django knows how to break up
such a message and parse the form data and the file data into separate
pieces. I could imagine that the Flash uploader might not construct it's
request that way, but I have no idea.

If you want to debug this from your code, have a look at
request.raw_data, to see what Django received, and request.META will
contain all of the HTTP headers in upper-cased format.

Regards,
Malcolm


--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to