Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Coldfuion 2023 fileUploadAll parameter error

Community Beginner ,
Aug 08, 2024 Aug 08, 2024

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

351
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 11, 2024 Aug 11, 2024

The attribute should be "allowedExtensions" instead of  "acceptExtensions".

Translate
Community Expert ,
Aug 11, 2024 Aug 11, 2024

The attribute should be "allowedExtensions" instead of  "acceptExtensions".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Aug 12, 2024 Aug 12, 2024
LATEST

Thank you, BKBK! That fixed it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources