I am trying to use below code to show a save dialog box when a link with .swf file is clicked, But the problem is that its not working. Can anyone share the code to show a save dialoge box when a link is clicked with .swf file extention. Please see the below code, I am calling it on htmlanchor click event. Let me know if there are any other soltions..Thanks
John Wiese106 reputationPosted May 26, 2010, 6:20 AM EDT
✓ Accepted answer0
The problem lies in your ContentT-Type header. By passing the header "application/x-shockwave-flash" you are telling the browser that the file it is about to pull down is a flash application. If the browser knows how to handle flash (ie. has the player installed) than it will play it by default, if it doesn't it will prompt to save.
So, if you always want the browser to prompt the user to save it then simply put a diffrerent content-type header that is unknown to the browser, like "application/myApp" and it will then always ask to save it
John Wiese106 reputationPosted May 26, 2010, 6:20 AM EDT
So, if you always want the browser to prompt the user to save it then simply put a diffrerent content-type header that is unknown to the browser, like "application/myApp" and it will then always ask to save it
wajid ansari47 reputationPosted May 27, 2010, 5:31 PM EDT