FileUpload Using Ajax In ASP.NET With C#

后端 未结 8 1325
无人共我
无人共我 2021-01-07 05:48

I need to upload images using FileUpload without postback(using Ajax).I tried many examples.But in all postback is coming or they are using PHP.Can anyone help me to do sing

相关标签:
8条回答
  • 2021-01-07 06:35

    There is no way you can access the contents of a file input field through JS. This is because of security concerns. Though what you CAN do is to create an iframe and from a button submit only that iframe which again can contain your file input field...

    This would give the "impression" of an Ajax File Upload control...

    0 讨论(0)
  • 2021-01-07 06:36

    I use Ajax Uploader too. It works great for my projects and it allows you to upload files to web server without refreshing the page.

    Here is a demo page.

    0 讨论(0)
提交回复
热议问题