5

Any code snippet to upload file to server via ajax call? I am using Asp.net MVC 3

coure2011
  • 40,286
  • 83
  • 216
  • 349
  • 1
    Filetransfer via ajax isn't possible atm. You need to use a solution that posts to a iframe to achieve the feel of a "ajax"-upload. No XHR-requests. – Alxandr Feb 06 '11 at 16:17
  • I dont think there was any reason for the negative vote.. why cant he think that it can be done! Its a vlaid question.. – Baz1nga Feb 06 '11 at 16:41
  • 1
    Have you checked out this (jQuery File Upload) http://aquantum-demo.appspot.com/file-upload – J.W. Feb 06 '11 at 21:39

1 Answers1

3

Hey try using this tool called slickupload. Its a really cool tool and handles most of the problems with streaming while providing a cool UI while uploading the file too.. really easy to use too.

Problems with uploading large files of net disconnection etc is also handled gracefully by this tool..

do check it out at

http://krystalware.com/Products/SlickUpload/

Baz1nga
  • 15,485
  • 3
  • 35
  • 61
  • 3
    There's also [Uploadify](http://www.uploadify.com/) if you're already doing jQuery stuff. – Pointy Feb 06 '11 at 16:26
  • nice.. its open source too.. +1 frm me.. but i still love slick upload cos my company can afford it.. :D – Baz1nga Feb 06 '11 at 16:57
  • does that support choosing directories to upload their content? – iLemming Aug 22 '11 at 18:52
  • At the server side you control where you want to store the file. Sslickupload will just give you the file as a byte stream saving it is left to you – Baz1nga Aug 22 '11 at 18:58