简体   繁体   中英

Download file to the client from server - jquerymobile/html5/c#

I am developing a html-5 application with jQuery mobile/c# and i am new to it.

I have to download a file (this file can be of any type say for example .dwg/.txt/.pdf/.doc/.xls/.mp3/.mp4..etc. ) to the client from the server when the user click on a link. The file is created by a web service in a temp_file folder on the server dynamically. How can i download this file into the client when the user clicks on the link...?

i tried to use the jquery.fileDownload.js plugin but it is failing if the viewer for the file type is not available.. (for example it downloads a .doc file but fails on a .dwg file)

any help in this direction is highly appreciated...

感谢那些尝试提供帮助的人...问题已解决..问题出在Web服务器上,其中缺少MIME类型条目。

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