Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing a File from user's Hard Disk

Status
Not open for further replies.

Kush

Programmer
Sep 20, 2000
24
US
When the user clicks on an Add button, I want it to open the contents of the user's hard disk in a small window like that in Windows and enable the user to include the filename in the textbox of the form and upload a file to the ColdFusion server. How can I facilitate that?

I really appreciate your responses.

Thank you.
 
<form action=&quot;whatever&quot; name=&quot;someName&quot;>
<input type=&quot;file&quot; name=&quot;uploadFile&quot;>
<input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Submit&quot;>
</form>

:)
Sylvano
dsylvano@hotmail.com
 
If you want to upload a file, you'll need to make sure you add
[COLOR=FF8000]METHOD=&quot;Post&quot; ENCTYPE=&quot;multipart/form-data&quot;[/color]
to the form tag in order for the ColdFusion script to recognize it.

[COLOR=000080][COLOR=FF8000]<FORM ACTION=&quot;upload.cfm&quot; NAME=&quot;upload&quot;
METHOD=&quot;Post&quot; ENCTYPE=&quot;multipart/form-data&quot;>[/color][/color]

[COLOR=000080][COLOR=FF8000]<INPUT TYPE=&quot;file&quot; NAME=&quot;uploadFile&quot;>[/color][/color]
[COLOR=000080][COLOR=FF8000]<INPUT TYPE=&quot;Submit&quot; NAME=&quot;Submit&quot; VALUE=&quot;Submit&quot;>[/color][/color]

[COLOR=000080][COLOR=FF8000]</FORM>[/color][/color] - tleish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top