Error checking in cffile


hi,

 

i use cffile upload file. recently, system occurs problems.

 

the coding following:

 

 

now, sometimes, user uploads file cannot find file in server. however, there no error shows in system. (no error exception)

 

is there possible way check error? or how can happen problem?

can post cffile code?

does ever work - has uploaded file?

 

you can try , put cftry/cfcatch block around cffile operation catch errors may thrown.

 

     <cftry>

          <!--- cffile logic --->

          <cfcatch type="any">

               <!--- email or log error --->

          </cfcatch>

     </cftry>



More discussions in ColdFusion


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support