Skip to main content
Inspiring
Aug 8, 2024 3:28 PM UTC
Answered

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

    This topic is closed to new replies. Start a new post to keep the conversation going.
    BKBK
    BKBKCorrect answer
    Community Expert
    Aug 11, 2024 9:47 AM UTC

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

    2 replies

    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    Aug 11, 2024 9:47 AM UTC

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

    Translate
    BLGelwickAuthor
    Inspiring
    Aug 12, 2024 1:19 PM UTC

    Thank you, BKBK! That fixed it.

    Translate