Setting path directory in a download dialog
Using Javascript, is it possible to have a download window open with the download path preset? I know I can't force the user to download the file to a certain location, which is fine, but can I pres开发者_StackOverflowet the filename to the directory to which I'd prefer the file to be saved? At this point, the user can still change directory since it's still within the download dialog window
, but to save time it would be handy if the text was already preset to the correct directory.
No. That would be a security violation.
EDIT: think of presetting the download directory to C:\WINDOWS
and then disguising the download to replace a system file with something more malicious.
精彩评论