I hope this is the right place for this question. Can somebody please help
me with this basic Blobstore file upload issue?
snapshot from *main.py*
```
class HomeHandler(BaseHandler):
def get(self):
upload_url = blobstore.create_upload_url('/upload_file',
gs_bucket_name=BUCKET_NAME)
context['upload_url'] = upload_url
self.render_response('home.html', **context)
class UploadHandler(BlobstoreUploadHandler):
def post(self):
"""Upload JSON and CSV files to CS bucket."""
file_infos = self.get_file_infos('file_upload') # returns [] everytime
uploads = self.get_uploads('file_upload') # returns [] everytime
print(file_infos, uploads)
self.redirect('/'.join(['/?', urllib.urlencode({'file_upload': uploads[0] or
uploads[1]})]))
app = webapp2.WSGIApplication([('/', HomeHandler),
('/upload_file', UploadHandler)], debug=True)
```
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/7f6c997c-f32d-43db-88ad-1ee4acfad044%40googlegroups.com.