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

Coldfuion 2023 fileUploadAll parameter error

Community Beginner ,
Aug 08, 2024 Aug 08, 2024

Copy link to clipboard

Copied

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

Views

135

Translate

Translate

Report

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".

Votes

Translate

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Thank you, BKBK! That fixed it.

Votes

Translate

Translate

Report

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
Documentation