fileUpload() not working as described

I am running Lucee 5.4.5.23 on Windows 2019 II. When using fileUpload we are getting the following error

500 ERROR

ARGUMENT [STRICT] IS NOT ALLOWED FOR FUNCTION [FILEUPLOAD]

here is the code:

resp = fileUpload(
destination = getTempDirectory(),
fileField = “form.floorplanImage”,
accept = “.jpg,.jpeg,.png,.gif”,
nameConflict = “makeunique”,
strict = false);

Docs say that “strict” is EXPLICITLY for uploadFile and UploadAllFiles. What am I missing? Used to do these all through the CFFILE tag but am converting to script.

Thanks!

So the CFDOCS.ORG is out of sync with the Lucee docs…

If you compare

https://cfdocs.org/fileupload with https://docs.lucee.org/reference/functions/fileupload.html you can see they are not the same.`

cfdocs.org is published by foundeo.com, not official Lucee documentation.

1 Like