After all what I've read on this topic, I know that there is no way to do automated file upload from browser without some kind of "elevated permissions".
But, elevated permissions is something what I have, bacause the application runs on intranet and user currently enables access to ActiveX control that makes it possible to do some document scanning using COM. Then a scanned document saved on file system needs to be uploaded.
Now, the only browser requirement is IE7+ compatibility. But with IE8, the only way to set value to <input type="file" ... />
is manually clicking "browse" button.
Is there really no way to set value to input form field, even if the site is added to trusted sites and full access for ActiveX code is enabled?
The same seems to apply to Flash and Silverlight, security policy makes it impossible to upload file without user manually selecting it. Silverlight probably could do it in OOB mode, but that is way too interruptive if a user has to click to enable out of browser mode every time.
ActiveX and Java applet could probably do it. If using <input type="file" ... />
is not an option, is there any lightweight (possibly free/open-source) ActiveX control that would handle uploading from file system?