1- Please provide additional information about the context of your issue, 
and what you are trying to achieve
2- Please provide the full details of the error returned
3- Please provide the documentation that was followed to implement this 
"main.py" file


On Wednesday, January 8, 2020 at 9:50:10 AM UTC-5, Sunando Samaddar wrote:
>
> 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/91fc2cf4-7501-473f-9628-c6ef06c9a0de%40googlegroups.com.

Reply via email to