javascript - control the working directory for <input type="file">? -


Software All reports generated by this software are always kept in the same directory. With some of our computer-literate collaborators, past and (ongoing) experiences, look at the same difficult task: Problems finding the right directory to upload / save invoices to a particular directory from suppliers' website Will be.

Computer is running Windows Server 2003 at every location and currently IE 6 is

We want to increase the ease of use, and fix file inputs and point to the correct directory Want to comply with .

I hope that the files should be able to set the input values ​​directly, but it is for good reasons that are disabled in most brovers. Is it possible through javascript, or just to manually control the directory that opens in HTML when the user clicks the browse button?

If not, what are the other suggestions for completing this? The way to set up a shortcut successfully on the desktop is also simple, which will force the browser to use the required work directory. (IE apparently ignores the 'startup' parameter of the shortcut)

Content can not control the input using Javascript for security reasons Otherwise, you can create a hidden form with a file input field, set it on a path, and upload the file to your server without user knowledge To javascript L can submit the form.

Unfortunately, I 'm not sure about a way to set the default path for the file selector if there is one, then I'm sure it will be browser-specific and only use the client side Can be done by setting some options, not through HTML or JavaScript.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -