I am trying to upload 4 files to 4 separate locations in one transaction. I can do it with one file but it does not want to work with multiple.Here is what I am doing
This is the form:
...
<td width="112" bordercolor="black" valign="top">
<p>Property Picture:
<input name="picture" type="file">
</p>
</td>
<td width="203" bordercolor="black" valign="top">Directions: <br>
<input name="directions" type="file">
</td>
<td width="205" bordercolor="black" valign="top">Layout: <br>
<input name="layout" type="file">
</td>
<td bordercolor="black" colspan="2" valign="top">Arial:<br>
<input name="arial" type="file">
</td>
</tr>
</table>
<br><br>
</cfoutput>
<input type="submit" value="Upload File">
<input type="reset" value="Clear">
This is the upload file:
...
<cfoutput>
<cfif picture neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="picture"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>
<cfoutput>
<cfif directions neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="directions"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>
<cfoutput>
<cfif layout neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="layout"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>
<cfoutput>
<cfif arial neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="arial"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>....
This is the form:
...
<td width="112" bordercolor="black" valign="top">
<p>Property Picture:
<input name="picture" type="file">
</p>
</td>
<td width="203" bordercolor="black" valign="top">Directions: <br>
<input name="directions" type="file">
</td>
<td width="205" bordercolor="black" valign="top">Layout: <br>
<input name="layout" type="file">
</td>
<td bordercolor="black" colspan="2" valign="top">Arial:<br>
<input name="arial" type="file">
</td>
</tr>
</table>
<br><br>
</cfoutput>
<input type="submit" value="Upload File">
<input type="reset" value="Clear">
This is the upload file:
...
<cfoutput>
<cfif picture neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="picture"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>
<cfoutput>
<cfif directions neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="directions"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>
<cfoutput>
<cfif layout neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="layout"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>
<cfoutput>
<cfif arial neq "">
<CFFILE
ACTION="Upload"
FILEFIELD="arial"
DESTINATION="e:\inetpub\ NAMECONFLICT="MAKEUNIQUE">
<cffile
action="rename"
source="e:\inetpub\ destination="e:\inetpub\</cfif>
</cfoutput>....