So I’m trying to use filepicker.io with a GAE application. The filepicker widget returns the URL of the file that a user uploaded.
How do I then use this url to upload the file to GAE’s blobstore?
The blobstore only supports “file uploading through a form”, so the real question is how to fake a form POST containing the URL of a file.
Faking a form post is possible, but it’s much simpler to use the Files API
Edit:
To use the File API with urlfetch you would write something like this:
I haven’t tested this – so if this doesn’t work, let me know.
Also, I believe you can leave the mime_type as ‘application/octet-stream’ and App Engine will try and guess the proper type. If that doesn’t work try changing it to ‘image/png’. Or for a pdf the mime type would be ‘application/pdf’