The AppEngine's standard API assumes files are uploaded from an HTML form.
I'm trying to post a file to the blobstore from a REST API method that can be called by a non Html client (Flash, iPhone, etc.)
The code I'm trying to get working:
# Get the blobstore upload url
upload_url = blobstore.create_upload_url("/activities/upload_fi...
Google App Engine imposes a 30 seconds timeout for every request. Is this applicable when uploading to the blobstore?
Thanks!
...
I've managed to get email attachments onto Amazon S3 from a GAE incoming email, but does anyone know a technique to get an attachment, like an image, into the blobstore.
Any help would be much appreciated.
Code so far (with help from Alex)
upload_url = blobstore.create_upload_url('/upload')
msg = MIMEMultipart()
msg.set_type('multipar...
Please, does anyone knows how can I upload data directly to the blobstore, I mean, data coming from an urlfetch or an e-mail atachment?
...
bulkloader.py is very handy.
But as far as I can tell it doesn't appear to fetch items from the blobstore, so you can be left with broken entity relationships if you needed to dump/restore your application.
Does anyone know a method for completely backing up their data from app-engine including blobstore data?
...
<body>
<form action="<%= blobstoreService.createUploadUrl("/upload") %>"
method="post"
enctype="multipart/form-data"
>
<input type="file" name="myFile">
<input type="submit" value="Submit">
</form>
</body>
the above code throws a java.lang.NoSuchMethodError on compilation.I can't underst...
I tried to use the jquery plugin "uploadify" to upload multiple files to My App in Google App-Engine, and then save them with blobstore, but it failed. I traced the code into get_uploads, it seems field.type_options is empty, and of course does not have 'blob-key'. Where does the key 'blob-key' come from?
the code like this:
def uploa...
as pointed out on the overview page of blobstore api page
An app can read a Blobstore value a portion at a time using an API call.
can anybody provide a snippet doing exactly that?
...
int start=0,flag=1;
long size=blobInfo.getSize(),fetched=0,fetch;
byte temp[] = null;
while(fetched<size){
if(size-fetched>MAX_BLOB_FETCH_SIZE)
fetch=MAX_BLOB_FETCH_SIZE;
else
fetch=size-fetched;
temp=blo...
(I tried asking this on the GAE forums but didn't get an answer so am trying it here.)
Currently to upload blobs, the app engine's blob store service creates a unique one-
time URL that a user can post blobs to. My requirement is that I only
want authenticated / authorized users to post blobs in my application. I can achieve this curren...
I'm using the python api and have created a few orphaned blobs during testing.
Because of a bug in the dashboard, I can't currently delete these, and in any case going forward I would like to be able to do this programmatically since it will be unfeasible to do it manually once the number of entities goes up.
...
Related question I am having similar problems to what that guy had in his. My upload server returns aredirect Specifically, I am not sure what FormPanel.SubmitCompleteEvent.getResults() returns. Sometimes, I get html of an img:
<img style="cursor: -moz-zoom-in;" alt="http://<myapp>.appspot.com/servePic?blob-key=abcdef" src="http:...
Hi all,
I am trying to set up a basic file upload to blobstore, but I get
this OutOfMemoryError:
WARNING: Error for /_ah/upload/
aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArra...
there is any sample showing how to use the blobstore api with ajax?
when i use forms works fine, but if i use jquery i don't know how to send the file and i get this error:
blob_info = upload_files[0]
IndexError: list index out of range
I have this code in javascript
function TestAjax()
{
var nombre="Some random name";
aja...
In AppEngine i could download the data from appspot to my local using appcfg download_data but it seems to be now downloading the one from the blobstore Api, is there any way i could download the blob as well as the data keeping their keys synchronized?
So the final outcome is I download data from the server (including blob) go to anoth...
The Google Blobstore recently added support for serving partial byte ranges from a blob. When this method is invoked the response is generated with a HTTP 206 (Partial Content) status code. So it looks like app engine assumes that it is always serving a Range request in this case.
However, in my case I have bundled many files into one b...
I want to retrieve a file form a URL like http://www.abc.com/files/file.pdf and store in the blobstore... how do I do this?
Right now it only allows from form posts ...
...
I am trying to upload a file in GAE using the Blobstore API. I am getting the following exception when running the GAE server locally (dev mode):
WARNING: /_ah/upload/ag10cmlwc2NoZWR1bGVychsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YFQw
java.lang.IllegalStateException: Must call one of set*BlobStorage() first.
at com.google.appengine.api.blobsto...
I'm trying to associate a video file to a record with a bunch of properties, but can't seem to allow the user to do everything in one form - name the video, provide description and answer some question, AND upload the file.
Here are the steps I'd like to perform:
User is served with a page containing a form with the following fields: ...
What can I do to limit the size of a file that can be uploaded? I know I can limit it client side with SWFUpload, but how can I limit it server side?
How do I protect against someone uploading a 1GB file and eating up my quota?
...