Details
Assignee
Pothys - MitrahSoftPothys - MitrahSoftReporter
Christopher TierneyChristopher TierneyPriority
MajorNew 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
None
Details
Details
Assignee
Pothys - MitrahSoft
Pothys - MitrahSoftReporter
Christopher Tierney
Christopher TierneyPriority
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
None
Created 25 June 2019 at 21:10
Updated 26 July 2022 at 19:42
fileUpload() and <cffile action="upload"> are silently failing for S3 virtual file systems.
This will seemingly break out of a <script> block seemingly entirely. It skips my writeOutput() and writeDump() methods and goes straight to the proceeding HTML:
uploadFile = fileUpload( 's3://my-test', 'form.imageFile' );
writeDump(uploadFile);
This will dump out what appears to be a successful upload in the uploadFile variable dump:
<cffile action="upload" destination="s3://my-test/" filefield="form.imageFile" result="uploadFile">
<cfdump var="#uploadFile#">
The keys were set in application.cfc via:
<cfcomponent>
<cfset this.s3.accessKeyId="{key}">
<cfset this.s3.awsSecretKey = "{secret}">
</cfcomponent>
This code works just fine in Adobe ColdFusion 2016.
I noticed that if I change the S3 path to something that doesn't exist, the same silent failure occurs.
No files ever make it to the S3 bucket.
This has been confirmed on multiple machines running CommandBox. My current Java Version is 1.8.0_202 via AdoptOpenJdk 64bit.