开发者

how to ajax upload file in .net?

I need to implement aja开发者_如何转开发x upload functionality similar to the one in this page . But I do not want to make a 1000 line code out of it. If anyone knows a simple ajax upload method without using third party tools that would be great.


There is not a "simple" ajax file upload method (without using 3rd party tools), because browsers will not allow javascript to upload files due to security considerations. That could allow malicious web sites to upload your private files.

There are (afaik) two predominant ways of doing it, one is using a flash plug-in, and the other is creating an iframe that handles the upload.

I have previously used this one: https://github.com/valums/ajax-upload which worked well

But there is a new version here that I have not yet tried: http://valums.com/ajax-upload/

/Pete

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜