Coldfuion 2023 fileUploadAll parameter error
We upgraded from CF11 to CF2023 and are getting fileUploadAll parameter validation error.
Here is our the code snippet:
fileUploadAll(
destination="#destPath#",
onconflict="overwrite",
continueonerror = "true",
mimeType="application/pdf",
strict="true",
acceptextensions=".pdf"
);
This is the error in the application.log:
Parameter validation error for the FILEUPLOADALL function.The Valid Parameter for function FILEUPLOADALL are [destination, mimetype, onconflict, strict, continueonerror, errorvariable]
This is the function definition listed on the Adobe site:
FileUploadAll(destination, accept, nameConflict, strict, continueOnError, errors, allowedExtensions)
As you can see the parameter lists do not match and when I modify the code to match either list, it still throws an error.
Thank you for your help.
- Barb
