Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT
//I upload the file first <cfloop from="1" to="#variables.maxFiles#" index="ii"> <cftry> <cfif StructKeyExists(form,"AttachFile" & ii) && len(trim(Form["AttachFile" & ii]))> <CFFILE ACTION="UPLOAD" FILEFIELD="AttachFile#ii#" DESTINATION="#variables.filelocation#" NAMECONFLICT="makeunique"> <cfset Attachments=ListAppend(variables.Attachments,cffile.serverfile)> //here I get the size of the file in the list <cfset GetFileSize=ListAppend(variables.GetFileSize,cffile.filesize)> </cfif> //here I want to assign them into variable so I can insert the value into the database <cfloop list="#variables.GetFileSize#" index="fg" delimiters=","> <cfset variables["filesize" & fg] = #fg#> </cfloop> </cfloop>
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.