将 blob 上传到 App Engine 时出现问题
您好,我正在尝试使用 App Engine 教程中提供的完整示例应用程序代码将一些 mp3 作为 blob 上传 此处,我收到以下错误`HTTP ERROR 404
访问 /_ah/upload/ag5jb2xsZWN0aXZlZ3dhcHIbCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGHQM 时出现问题。原因:
No upload session: ag5jb2xsZWN0aXZlZ3dhcHIbCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGHQM`
有人知道我为什么会得到这个吗?尝试在本地运行,甚至尝试部署应用程序,但仍然存在问题!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不要按后退按钮并尝试上传文件。每次使用时请在浏览器中点击 URL。
Do not press the back botton and try to upload file.Use to hit the url in browser every time.
对于每次将文件上传到 Blob,Blob URL 都是唯一的。第一次,当您上传文件时,您可能正在创建一个 blob url,使用
现在,当您尝试上传下一个文件时,您正在单击后退按钮,并且您正在尝试使用您为之创建的相同 blob 会话第一个文件。这就是您面临“无上传会话”错误的原因。
解决方案可能是,您可以在单击后退按钮时创建一个新的 blob url。单击后退按钮后,进行一些处理以创建新的 blob url。
希望这有帮助。
谢谢。
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
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.
似乎是 SDK 1.4.3 的一个错误
这似乎适用于 SDK 1.4.2
这能解决您的问题吗?
Seems to be a bug with SDK 1.4.3
This seems to work just fine with SDK 1.4.2
Does this resolve your problem?