Have you tried this with a web form yet? The best way to track down this
issue is to first try to get it working with a web form, then build a
client. I don't see any reason why this wouldn't work, but I'd first want to
rule out that it's not server side related.

My guess is that it's probably something that's happening on the client. If
it works on the server using web forms, I'd do a trace using a tool like
Charles Proxy or WireShark and compare the difference.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Wed, Feb 9, 2011 at 1:50 PM, spidaman <[email protected]> wrote:

> I have a  BlobstoreUploadHandler that works when I run the development
> server, but it consistently fails when I deploy it. When the upload is
> handled, get_uploads() is always returning an empty list, I'm
> expecting a list of BlobInfo's. Can anyone spot what I might've done
> wrong here?
>
> class
> TestImageUploadHandler(blobstore_handlers.BlobstoreUploadHandler):
>
>    def get(self):
>        self.response.headers['Content-Type'] = 'text/plain'
>        self.response.out.write(blobstore.create_upload_url('/image/
> submit'))
>
>    def post(self):
>        upload_files = self.get_uploads('image')
>        if len(upload_files) > 0:
>            name = self.request.get("name")
>            blob_info = upload_files[0]
>            image = TestImage(name=name, blob_key=blob_info.key())
>            image.put()
>            logging.info("Uploaded image named %s" % name)
>            self.redirect("/image/%s.png" % name)
>        else:
>            logging.info("No files were uploaded")
>            self.redirect("/static/broken.png")
>
> I posted this and example client code here
> https://github.com/spidaman/gae-blobstore-example
>
> This is a simplified version of an app that I running in production,
> it used to be flakey but as of yesterday, it fails to handle uploads.
> Any help here would be appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to