FileUpload Using Ajax In ASP.NET With C#

后端 未结 8 1323
无人共我
无人共我 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...

提交回复
热议问题