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 preset 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.
Using Javascript, is it possible to have a download window open with the download
Share
No. That would be a security violation.
EDIT: think of presetting the download directory to
C:\WINDOWSand then disguising the download to replace a system file with something more malicious.