I'm trying to upload a file to a server but letting the user checoff which
server directory to uopload to. I have a form with checkoff boxes, but when I
checkoff the box along with the file to upload it does not send it to the
directory. No error appears but it sends it to a temp directory even though the
form.upload field displays.
This works if the checkoff form is seperate and sends the checkoff field value
to the action file with the cffile action information.
Any suggestions please/
Thx.
RO
<cfoutput>
<CFIF IsDefined("form.upload.x")>
<cffile action = "upload"
fileField = "FileContents"
destination = "e:\inetpub\wwwroot\datacenter\documentation\#form.upload#\"
accept = "image/jpg, application/msword, text/HTML, application/pdf"
nameConflict = "MakeUnique">
</cfif>
</cfoutput>
<form method="post" action=<cfoutput>#cgi.script_name#</cfoutput>
name="uploadForm" enctype="multipart/form-data">
<table border="1" width="100%" cellspacing="0" style="border-collapse:
collapse">
<tr>
<td width="26"><input type="checkbox" name="upload" value="WWW"></td>
<td>WWW</td>
</tr>
<tr>
<td width="26"><input type="checkbox" name="upload" value="PHD"></td>
<td>PHD</td>
</tr>
<tr>
<td width="26"><input type="checkbox" name="upload" value="APC"></td>
<td>APC</td>
</tr>
</table>
<input name="FileContents" type="file">
<br>
<input type="image" src="images/update.gif" name="update" value="update">
</form>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293399
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4