Hey John,

Thanks for the link - it's exactly the same problem.
I'll continue the discussion there!

Cheers,

John

On Sep 2, 12:23 pm, John McLaughlin <[email protected]>
wrote:
> This seems very closely related 
> to:http://groups.google.com/group/google-appengine-python/browse_thread/...
>
> On Sep 2, 11:25 am, John Boxall <[email protected]> wrote:
>
>
>
> > Hey AppEnginites,
>
> > I'm trying to programatically uploading blobs to the datastore from my
> > application via a handler that constructs a POST request when its hit:
>
> > class PostHandler(webapp.RequestHandler):
> >     def get(self):
> >         upload_url = blobstore.create_upload_url('/upload_photo')
> >         u = urlparse.urlparse(upload_url)
> >         data = open('image.jpg').read()
> >         response = post_multipart(u.netloc, u.path, [],
> > files=[('file', 'image.jpg', data)])
> >         self.redirect(response.getheader('location'))
>
> > On the dev server this times out because it can only handle a single
> > request at a time - and this handler spawns a second request to the
> > application.
>
> > However it's also failing on AppEngine itself with a "DownloadError:
> > ApplicationError: 5" exception.
>
> > Is it not possible to programatically upload blobs?
>
> > Cheers,
>
> > John

-- 
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