Auto-Open Download File

Guys,

I am using a kind like
http://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_20374411.html

to download file from server.

However, it only downloads. Is there any way (maybe setting the request header or response) that will automatically open the downloaded file in client side?

Thanks
David
LVL 16
suprapto45Asked:
Who is Participating?
 
objectsCommented:
yes, you can set the content type to whatever the file is, then if the client has the necessary association for that type it will get opened.
0
 
suprapto45Author Commented:
Yeah,

I just realized that as well. Just now, the problem happens because I forgot to add the extension to the file.
Thanks for your help.

David
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.