File uploads doesn't support allowedExtensions or strict="false"

Activity

Pothys - MitrahSoft 29 September 2022 at 11:07

cffile tag attributes “allowedExtension“ and “blockedExtension“ : https://github.com/lucee/Lucee/commit/e233efd4e0a56b3cd59ea68a46187fcdd69ca89e

fileUpload() arguments “allowedExtension“ and “blockedExtension“: https://github.com/lucee/Lucee/commit/a0dd5e7304a1e2a75ef1106790c584a6ea765a8e

Pothys - MitrahSoft 18 November 2020 at 08:13

,
I've checked cffile tag with lucee fixed version 5.3.8.107-SNAPSHOT.

5.3.8.107-SNAPSHOT

  • Attribute allowedExtensions and blockedExtensions are works fine.

  • allowedExtensions is override the blockedExtensions and this.blockedExtForFileUpload. So, it works as expected.

  • If this.blockedExtForFileUpload = "html" and accept attribute with mimeType(text/html) is allowed the file to upload successfully.

  • Seems, the same scanerio throws an error in ACF. Because this.blockedExtForFileUpload doesn't works in this version.

6.0.0.12-SNAPSHOT

  • And I've checked fileUpload & fileUploadAll functions with lucee version 6.0.0.12-SNAPSHOT.

  • The argument allowedExtensions works fine.

  • But blockedExtensions and this.blockedExtForFileUpload doesn't work as expected.

  • It doesn't block the fileupload for the declared extension.

Michael Offner 16 November 2020 at 15:32

please test in Lucee 5.3 the tag cffile with the attribute “allowedExtension“ and “blockedExtension“ then in Lucee 6 test also the functions [fileUpload, fileUploadAll] with this arguments.

Michael Offner 16 November 2020 at 15:30

added the function arguments to 6.0.0.12

Michael Offner 16 November 2020 at 13:43

I’m adding the attribue “allowedExtensions“ AND “blockedExtensions“ to the tag cffile.

Fixed

Details

Assignee

Reporter

Priority

Fix versions

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Affects versions

Created 24 August 2020 at 09:24
Updated 9 June 2023 at 03:57
Resolved 27 November 2020 at 13:18