I tried opening up a SaveAs Dialogbox using the "Content-Disposition attachment filename". But it alway开发者_JAVA百科s opens up on its default path. Is there a way to open up this SaveAs Dialog on user-specific path.
Else is there any other way of creating file on server and copying it to client machine?
Please suggest.
-Justin Samuel.
This cannot be done, because of security restriction. Let the user download the CSV and choose the location on his own.
If you are trying to force the download to always give a Save As, you should set the content-type
to application/octet-stream
. However, it will always be up to the user to decide where that file is saved and that is as it should be for security reasons.
精彩评论