0

I want to upload files to Google App engine blobstore, is there any method that we can upload pdf files to google app engine blobstore through simple python script. I have a server on which due to some reasons i cannot install google app engine sdk , so what method should i use to upload files in blobstore.

2
  • If you can put a python script on the server, then you can put the SDK on the server (unless a policy says you can create python programs but not use thirds party libraries.) There is no installation required as such for the SDK. However you should use GCS as blobstore is being depricated. Commented Jun 20, 2013 at 9:03
  • Found the solution from this post ! stackoverflow.com/questions/17294507/… Commented Jul 3, 2013 at 13:20

2 Answers 2

0

Found method to upload files to blobstore programatically from this post :

Google App Engine - Error uploading file to blobstore from Python code

Sign up to request clarification or add additional context in comments.

Comments

-1

You can't upload directly to Blobstore. However if you use Google Cloud Storage instead, you can upload directly with the gsutil utility. You can access files in GCS from your App Engine application just as easily as with Blobstore.

3 Comments

if i get the upload url from the GAE server and then do a POST Request at that url wouldn't it work ? however in this method the problem is how to send file in same format as the GAE does
Yes it would work, i've done something similar through my android app. create a blobsture url and post a file following the multipart-form upload rfc standards.
Thanks Faisal, i have figured out a way to do it in python also

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.