简体   繁体   中英

Image uploading with ajax and c#

I'm trying to find a way to upload an image to a webserver without submitting a form and have decided to do this with ajax, but I'm struggeling to find some good examples of how to do this.

I would appreciate if someone had some examples, or could explain how this can be done. (I'm not using any ASP.net servercontrols).

调查一下: http : //www.plupload.com/我正在我的网站上使用它

An ajax post doesn't submit <input type="file" ... , so you'll need to do it another way. If your browser supports the JavaScript (HTML5) File API, you're golden. Otherwise things like jQuery uplodify are great. http://www.uploadify.com/ It uses flash behind the scenes, so won't work great on the iPad, but the iPad browser has the File API.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM