> I'm trying to do an <INPUT type="file"...>, but it doesn't seem to work!
In
> reading some websites and documentation, it looks like I need to install
> Microsoft Posting Acceptor. Does anyone have any experience with this? Is
it
> still required for Windows 2000? All the copies I can find seem to be
rather
> old, so I don't want to install anything without knowing that it is in
fact
> what I'm looking for.
Do you mean you want to upload a file? If so, something like this should
work, for GIF files. You will need to change the destination field
obviously.
<cfif NOT isdefined('form.FileName')>
<cfform action="upload.cfm" method="POST" enablecab="Yes"
enctype="multipart/form-data">
<input type="file" name="FileName">
<input type="submit">
</cfform>
<cfelse>
<CFFILE ACTION="Upload"
FILEFIELD="FileName"
DESTINATION="c:\inetpub\wwwroot\"
ACCEPT="image/gif"
NAMECONFLICT="MakeUnique">
<cfoutput>The file #serverfile# was successfully uploaded</cfoutput>
</cfif>
Will
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]