Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.
<cftry> <cffile action="upload" destination="#path#\images\LOGO\" filefield="LOGO" nameconflict="overwrite"> <cfquery datasource="#dn#"> update Logos set logos = '#Clientfile#' where id= #customer.ID# </cfquery> <cfif cffile.filesize gt 2000> <cfthrow type="sizeerror" message="File is to big; your file must be smaller than 2.0mb."> </cfif> <cfcatch type="sizeerror"> <cfabort showerror="#cfcatch.message#"> </cfcatch> </cftry>
Join the community of 500,000 technology professionals and ask your questions.