简体   繁体   中英

Unable to Upload file using jquery

I am trying upload a file(pdf/doc) type from iE 9 to server using jquery fileupload plugin , but when response from server is returned of type json object , IE is prompting me to open/save that file. I get this as a pop at the bottom of the IE 9, Not sure how to get ride of it.

Exact message is "do you want to open or save file from localhost".

I have had the problem in the past. The best solution i found wast to a. serialize your response as JSON, and return the json as plain, instead of json, then convert the return string to a json object when it gets back to the client.

Very possibly a better way to handle it, but this is what I have done int the past.

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