Can't Upload File To App Engine "list Index Out Of Range"
I am trying to updload a picture from a Phonegap application to my Python App Engine project. The phone app trys to upload the file but App engine returns a 'list index out of ran
Solution 1:
You need to generate the upload url via blobstore.create_upload_url('/upload')
. Right now you are making a multi-part POST directly your upload handler url. The intermediate url is critical because it generates a Blobstore key and adds it to the MIME header before passing it to the handler.
Solution 2:
I don't know anything about PhoneGap (what is it?) but that Python code is expecting your file to be sent via HTTP POST attached to a field named file
. Presumably, PhoneGap isn't sending it against that field.
Post a Comment for "Can't Upload File To App Engine "list Index Out Of Range""