Recently, I've found that CF9 doesn't give any error if filefield attribute isn't set in cffile. I'm not sure whether it's good or not. Because I've developed simple program for migration data from old server to new server with *.csv file. I've developed and tested it in CF9 and it working fine. But when I deployed it into CFMX server, I got the error just like "filefield attribute in cffile is .....". That's why I was amazed and how come it error is coming out even thought it works fine in our UAT server. So, I've looked through cffile tag and check filefield attribute is missing or not. Oddly, it's really missing. Now, I can convince that CF9 won't give you any error message if you don't want to set filefield attribute cffile. Cool or not, I'm not sure.
2<cffile
3 action="UPLOAD"
4 destination="[dir_path]"
5 nameconflict="MAKEUNIQUE">
6<cfset csvfile = FileRead("[dir_path]\#file.serverfile#")>
7
8<!--- filefield attribute is required in cffile in CFMX --->
9<cffile
10 action="UPLOAD"
11 destination="[dir_path]"
12 nameconflict="MAKEUNIQUE"
13 filefield="fileupl">
14<cfset csvfile = FileRead("[dir_path]\#file.serverfile#")>

Android
Top of Page