开发者

Any workarounds for getting swfupload.js working in Linux?

开发者 https://www.devze.com 2022-12-22 05:23 出处:网络
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?

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.


be sure you are not under proxy that does not support http1.1 as you will receive an error


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:

  1. Contents folder where you are saving your files.
  2. 777 is not so secure, you can change it later and restrict other users(which you dont want to give permission to upload) on uploading files.


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).


I am using Ubuntu 9.04 with swfupload and everything works just fine. Might be an old flash player.

0

精彩评论

暂无评论...
验证码 换一张
取 消