Allow User to Download File using Ajax

前端 未结 3 1640
南旧
南旧 2020-12-06 03:42

I am looking for a way to allow users to download a file from my site using ajax. The reason why i need to do this is because the files are quite big (50 megs normally). So

相关标签:
3条回答
  • 2020-12-06 03:51

    I don't really see how you can allow a user to download a file using ajax. There won't be any way to get the file to their filesystem from javascript. What's wrong with targeting the file into an iframe or a new window and letting users manage the download like they are used to using their browser?

    0 讨论(0)
  • 2020-12-06 04:07

    I have decided to use the IFrame method is there is no other way that works seamlessly enough to make it worth the time.

    0 讨论(0)
  • 2020-12-06 04:08

    Add a progress bar on your page and Use postback triggers for your updatepanel. It will solve the issue you are facing.

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