开发者

File Upload With Progress

I know this has been discussed a number of times, but the problem I'm having at the moment is finding a solution that is easy to work with and does not require much hacking around.

I want to be able to upload a file, and report on its progress. I've been playing with SWFUpload, and it seems like a bit to much messing around for my liking. Integrating it with code igniter just seems like it's going to cause headaches.

I want a visual progress indicator of some sort to show the user their upload hasn't stagnated. Even if it was just a spinner saying "Uploading. Do not close this window until upload is complete." that would be enough for me.

Security is the most important. Using something like SWFUpload is going to require passing variables to the upload form such as the user ID and other information I'd rather not give snooping noses the opportunity to sniff.

Any possible solutions. Help is much appreciated开发者_开发技巧.


You should take a look at HTML5 FormData and XMLHttpRequest 2 which allow you watch the progress directly in javascript.


You must customize the tool to meet your requirement , especially when its open source .

Security is the most important. Using something like SWFUpload is going to require passing variables to the upload form such as the user ID and other information I'd rather not give snooping noses the opportunity to sniff.

Why you need to pass user ID ? i think its HTTP matter not SWFUpload,so you can make it secure . Look here : http://demo.swfupload.org/Documentation/


I'm actually on the hunt for the same thing. A few of the options I have encountered so far are:

  • http://www.uploadify.com
  • http://valums.com/ajax-upload/ (Which is now headed off by Ben Colon here - github dot com / bencolon / file-uploader )

I haven't used any of those solutions because I'm not quite sure how to customize them for my application. But it looks like so far in my research, those are links that keep popping up.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜