有没有让 swfupload.js 在 Linux 中工作的解决方法?
SWFUpload 不适用于 ubuntu,我可以在互联网上看到各种提及它的内容,但我想知道这里是否有人找到任何解决方法?
我正在Windows上进行开发,所以代码执行得很好。但我的同事运行的是ubuntu,SWFUpload 立即崩溃。有没有人遇到过这种情况并找到解决方法?我尝试了一些方法,例如注释掉导致已知问题(例如进度)的事情,但没有效果。
任何帮助表示赞赏。
戴夫.
SWFUpload doesn't work on ubuntu, I can see various mentions of it throughout the internets but I'm wondering if anyone here as found any work arounds?
I'm developing on Windows, so the code executes fine. But my colleague is running ubuntu, and SWFUpload crashes instantly. Has anyone encountered that and found a work around? I've tried a couple of things like commenting out things that cause known-issues like progress but to no effect.
Any help appreciated.
Dave.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
确保您没有使用不支持 http1.1 的代理,否则您会收到错误消息
be sure you are not under proxy that does not support http1.1 as you will receive an error
确保将处理内容的文件夹具有 chmod 777(读/写/执行)权限。
如果您输入: ls -lsa
您可以查看所有文件和文件夹。您将看到权限、名称、所有者等。
在我的示例内容中,我将在其中上传文件的文件夹。
4 drwxrwxrwx 2 maryon maryon 4096 2010-10-26 11:21 内容
因为您可以看到我拥有的内容文件夹为所有用户提供了 rwx(读写执行)。这将允许用户通过 SWFUPLOAD 上传文件。
如果您没有此权限,您可以尝试运行此命令:
sudo chmod a=rwx content
这意味着'a'代表所有用户,将具有'rwx'(读/写/执行)。
注意:
你的文件。
您可以稍后更改并限制
其他用户(你不想
授予上传权限)
上传文件。
make sure the folder that will handle the contents will have a chmod 777(read/write/execute) permissions.
if you type: ls -lsa
you can view all your files and folders. you will see the permissions, name, owners and etc.
in my example contents is a folder in which i will upload the files.
4 drwxrwxrwx 2 maryon maryon 4096 2010-10-26 11:21 contents
as you can see the contents folder which i have has rwx(read write execute) for all users. this will allow users to upload files thru SWFUPLOAD.
if you dont have this permission you can try running this:
sudo chmod a=rwx contents
it means the 'a' stands for all users, will have 'rwx'(read/write/execute).
note:
your files.
you can change it later and restrict
other users(which you dont want to
give permission to upload) on
uploading files.
我只是在处理大文件时遇到问题。对于较大的文件,闪存电影在一段时间后冻结,我需要重新加载页面,但没有上传任何内容。 Firefox 和 google chrome 中也是如此。我使用的是 kubuntu 9.10。在 Windows 上根本没有问题...
所以我认为这是闪存问题,因为在 linux 上 uploadStart 和 uploadProgress 事件不会被触发...
您对此有任何解决方法吗? Flash版本是10.0 r45(64位系统上的32位)。
I have problems just with large files. With bigger files flash movie freeze after some time and i need to reload page and nothing is uploaded. It is same in firefox and also google chrome. I use kubuntu 9.10. On windows there is no issue at all...
So i think that it is flash problem, because on linux uploadStart and uploadProgress events are not fired...
DO you have any workaround for this ? Flash version is 10.0 r45 (32bit on 64bit system).
我正在使用带有 swfupload 的 Ubuntu 9.04,一切正常。可能是旧的 Flash 播放器。
I am using Ubuntu 9.04 with swfupload and everything works just fine. Might be an old flash player.