Can we insert value in File Upload control without using Browse button of it via JScript? if yes, then how?
Thanks in advance…
Can we insert value in File Upload control without using Browse button of it via JScript? if yes, then how?
Thanks in advance…
Subject: No you can’t for browser security reasons.
Subject: Inserting value in File Upload control
Just think about it…
IF it was possible to create a file upload control and write a filepath/filename into it using JavaScript, then it would be possible to upload what-ever file you want to from the client machine. That form could even be made invisible so the user would never know that you were uploading one or more of his files.
;o) You should check out the ongoing work-in-progress of the forthcomming HTML 5 standard which suggests drag’n’drop options for this.
Subject: Inserting value in File Upload control
By the way… don’t use JScript! Use JavaScript instead as it is cross-platform and cross-browser. JScript is only for Internet Explorer.