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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do an Automatically Upload file

Status
Not open for further replies.

gpontus

Programmer
Joined
Jan 25, 2002
Messages
1
Location
GB
Hi Every body,

I would like upload automatically a file.

I know we can upload a file like :

<CFFILE ACTION=&quot;UPLOAD&quot;
DESTINATION=&quot;C:\inetpub\NAMECONFLICT=&quot;OVERWRITE&quot;
FILEFIELD=&quot;NewFile&quot;>

But we need to use a HTML form like :

<form action=&quot;upload.cfm&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;>
<input type=&quot;File&quot; name=&quot;NewFile&quot; size=40>
<input type=&quot;submit&quot;>
</form>

I don't want choose the file by this way because I want do this upload in VBA for Microsoft Word.

Thanks,

Guillaume
 
AFAIK

This may not be possible for security reasons. You Cant use a html page to automatically upload a file on the clients machine other wise once people viewed a page you could set it to automatically update a known file on their system.


HTH

Kola
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top