swfupload 在我的 django runserver 中失败
谢谢, 科林·安德森
I have copied and pasted the code from http://demo.swfupload.org/v220/simpledemo/ into a django template, but when I upload a photo, the demo says "Server (IO) Error" before it actually uploads the entire file. The runserver is getting the request and returning a 200. Is there something I am missing here? What steps should I take to debug?
Thanks,
Collin Anderson
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到了。 我正在上传到虚拟视图,由于某种原因,如果您实际上没有访问 request.POST 或 request.FILES,它会给出该错误消息。
Found it. I was uploading to a dummy view, and for some reason if you don't actually access request.POST or request.FILES it gives that error message.
确保您拥有服务器的写入权限。 在你安装那个东西的文件夹中。 检查正在运行 runserver 的用户。 如果在 Windows 中 - 检查文件夹不是只读的。
Make sure you have write permission to your server. In the folder you installed that thing. Check the user that is running runserver. If in windows - check folder is not readonly.