I'm having trouble using ColdFusion 9.0.0 fileUpload() cfscript function. I'm getting this error message:
"Variable FILEUPLOAD is undefined."
Here is my code:
result = fileUpload(application.uploadPath, "attachment", "application/*, image/*", "makeUnique");
As an alternate solution, I was able to get it to work with the suggestion here Script function for file upload in ColdFusion 9 .
The fileUpload() function works on my local desktop running ColdFusion 9.0.1. I curious if anyone has gotten it to work on ColdFusion 9.0.0.
thanx
cfcInstance.fileUpload(). If you embed the<cffunction>definition in the same template as you are calling it, then it should work by calling simplyfileUpload(). - imthepitts