I have a process that autopopulates 1 to 50 different file upload boxes pending how many are required (this part is driven by asp and works fine). However, currently the user has to browse each and every file and then hit upload. I know what each filename and path is for the user (they use the labtop I set up for them and a program I wrote in VB also).
So, currently I have a text box populated to the left with the filepath autopopulated, and a blank file upload box next to it. They currently copy and paste the filepath on the left into the box on the right.
So, how in the heck can I have that path autopopulate in the file upload box?
[url]http://www.msultd.com/upload_file.htm
Here is my code:
<html>
<head>
<title>I want this box to say c</title>
</head>
<body>
<form>
I want this box to say c:program filesmsufile.jpg<p> </p>
<p>
<input type=”file” size=”15″ name=”file_upload”>
</p>
<p>
I can do this on a text box:</p>
<p>
<input type=”text” size=”50″ value=”c:program filesmsufile.jpg”></p>
</form>
</body>
</html>
So, basically, I am looking for something like the value= of a text box for a file upload; however, I don’t think there is one in html…if there is, please, oh please tell me…if not, is there a way in javascript to autopopulate the file I wish to upload?
edit:
If I can’t do this, then is there a way to simplify the copy and paste for my users? Place a copy button on the screen which will copy the text box, then a paste button which will paste it into the file upload box? Or, at least a copy button? Thanks!