For security reasons, browsers do not allow javascript to modify the files that will be downloaded: only the user can select files through the user interface. This is done to prevent the evil script from loading /etc/passwd , for example, without the knowledge of the user.
The only exception is that calling βresetβ on the form will clear the file or list of files, but you can never add them programmatically.
odrm
source share