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.

Omair Shamshir
  • 2,126
  • 13
  • 23
  • 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. – Tim Hoffman Jun 20 '13 at 09:03
  • Found the solution from this post ! http://stackoverflow.com/questions/17294507/google-app-engine-error-uploading-file-to-blobstore-from-python-code – Omair Shamshir Jul 03 '13 at 13:20

2 Answers2

0

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

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

Community
  • 1
  • 1
Omair Shamshir
  • 2,126
  • 13
  • 23
-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.

Daniel Roseman
  • 588,541
  • 66
  • 880
  • 895
  • 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 – Omair Shamshir Jun 20 '13 at 10:35
  • 1
    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. – Faisal Jun 22 '13 at 06:30
  • Thanks Faisal, i have figured out a way to do it in python also – Omair Shamshir Jul 04 '13 at 11:44