Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems uploading blobs onto App Engine

Hi i'm trying to upload some mp3s as blobs using the Complete Sample App code provided in the App Engine tutorial here and i'm getting the following error `HTTP ERROR 404

Problem accessing /_ah/upload/ag5jb2xsZWN0aXZlZ3dhcHIbCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGHQM. Reason:

No upload session: ag5jb2xsZWN0aXZlZ3dhcHIbCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGHQM`

Anyone have any ideas why i'm getting this? Tried running locally and even tried deploying the App and still having issues!

like image 469
user676567 Avatar asked Sep 10 '26 07:09

user676567


2 Answers

Do not press the back botton and try to upload file.Use to hit the url in browser every time.

like image 102
soumitra chatterjee Avatar answered Sep 12 '26 04:09

soumitra chatterjee


For each upload of file to the blob, the blob url is unique. For the first time, when you upload a file, you might be creating one blob url, using

blobstoreService.createUploadUrl("/yourServerURL");

Now, when you try to upload next file, you are clicking back button and you are trying to use the same blob session which you have created for the first file. That is the reason, you are facing the "No upload Session" error.

The solution could be, you can create a new blob url when you click the back button. Do some work around to create a new blob url upon clicking the back button.

Hope this helps.

Thanks.

like image 20
Malleswari Avatar answered Sep 12 '26 04:09

Malleswari



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!