I have a form with 3 places for uploading files of different types. If I leave one empty I get the error:
Error processing CFFILE
No data was received in the uploaded file '\' Saving empty (zero-length) files is prohibitted. Please make sure you specified the correct file.
I thought this would work, but evidently not:
<cfif #Len(Trim(Form.pdf IS NOT 0))#><cffile action="UPLOAD" filefield="pdf" destination="d:\mydommain.com\media\" nameconflict="MAKEUNIQUE"></cfif>
If I have a file in all 3 slots, it works fine. If I only have 2 slots with files, they both upload and the 3rd gives me that error.
TIA,
PT
Error processing CFFILE
No data was received in the uploaded file '\' Saving empty (zero-length) files is prohibitted. Please make sure you specified the correct file.
I thought this would work, but evidently not:
<cfif #Len(Trim(Form.pdf IS NOT 0))#><cffile action="UPLOAD" filefield="pdf" destination="d:\mydommain.com\media\" nameconflict="MAKEUNIQUE"></cfif>
If I have a file in all 3 slots, it works fine. If I only have 2 slots with files, they both upload and the 3rd gives me that error.
TIA,
PT