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.