Skip to main content
Inspiring
August 8, 2024
Answered

Coldfuion 2023 fileUploadAll parameter error

  • August 8, 2024
  • 1 reply
  • 303 views

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

    This topic has been closed for replies.
    Correct answer BKBK

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

    1 reply

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    August 11, 2024

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

    BLGelwickAuthor
    Inspiring
    August 12, 2024

    Thank you, BKBK! That fixed it.