I've got an app where the user uploads a fille via cffile. After I
check for allowed mime type, run it through the virus checker and some
other nonsense, I use cffile to move it the file to the final location
and appropriate filename. CFMX is telling me that the source attribute
on my last cffile call is invalid. However I can take the value of the
attribute, drop into a shell on the box and ls to it all day. I found
an earlier thread where CF supposedly sometimes means that the
destination is invalid, but that filepath value is similarly valid.
Ideas?
Here's the code:
> <!--- upload file --->
> <cffile action=""> > filefield=�#key#�
> destination=�#getTempDirectory()#�
> nameconflict=�makeunique� />
> <cfset variables.uploadFileFullPath = getTempDirectory() &
> cffile.serverFile />
>
> <!--- check for viruses, mime type, file size --->
>
> <!--- move to final resting place --->
> <cffile action=""> > source=�#variables.uploadFileFullPath#�
> destination=�#variables.finalDestinationDirectory#/
> #session.credentials.studentSequence#_#variables.fileCount#� />
--
Howard Fore, [EMAIL PROTECTED]
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

