Writing to S3 bucket

Gents,

Somewhere this has gone off the rails. I do not need help. I was simply trying to help the original poster. Lucee has an issue with the implementation of the fileUpload() when going to an S3 bucket. The basic policy that works for ACF does not work for Lucee - even when the code written and running on both servers is identical. For example:




//writeDump(fileToUpload);
uploadResult = FileUpload( destination=fileToUpload, fileField=FORM.fileObj, accept=LOCAL.validFileTypesAccept, nameConflict=“overwrite”);
writeDump(uploadResult);

Works perfectly on ACF with a fully private S3 Bucket using the General ‘Allow All S3’ policy. However, simply running it on Lucee - it will not allow putObject (used under the hood here) on the same bucket without turning off the 2 private blocks as stated in my original reply. So yeah, again, the discussion needs to focus on fixing the under the hood. I simply posted the ‘work-around’.

-jp