I've seen examples of cffile supporting s3 file pa...
# adobe
j
I've seen examples of cffile supporting s3 file paths but the Adobe doc history formatting seems totally borked? What version of CF was this introduced? @Mark Takata (Adobe) https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-f/cffile.html
m
I think this answers your question Jim: https://helpx.adobe.com/coldfusion/using/integrate-coldfusion-amazon-s3.html "ColdFusion (2016 release) and ColdFusion (2018 release) supported this feature using tags and functions that take file or directory as input or output. In ColdFusion (2021 release), we’ve extended the feature further to support Multi-cloud service."
j
Yep but then I saw this: https://brianklaas.net/aws/coldfusion/2018/05/24/Using-Simple-Storage-Service-In-CFML-Part-1.html "Adobe ColdFusion 9 and Railo 3 (now superceded by Lucee) were the first versions of CFML engines to support S3 as a native endpoint for file functionality in your CFML applications" With an example like:
Copy code
<cffile action="read" file="<s3://testbucket/test.txt>" variable="data"/>
So I'm confused (as usual) LOL
m
I think we'd probably need to hire a CF historian to work it all out
j
head desk
Hmm Ray posts about it as well in v9 https://www.raymondcamden.com/2010/07/15/CF901-Guide-to-Amazon-S3-support-in-ColdFusion-901 Let me try and see what blows up...
@Mark Takata (Adobe) You may want to get someone to fix that cffile doc page... it's formatting is way off.
m
I assume (and maybe @saghosh can confirm) that we for the post part try not to post about versions that are too far in the past in the help docs. That might be why CF9 isn't mentioned.
s
cffile also changed somewhat between 9 and 11 I think
one returned an array and one didn't
j
It's mentioned - but the formatting if you read that page is all jumbled
m
Jim, added you to docs channel and posted a request for update to Saurov.
👍 1
s
@Jim Priest did you mention what version you're using ? might have missed it
j
I am on 11 (sigh) which is why I was wondering when it was first added.
s
ah. I upgraded from 9 to 11 and cffile did break for me with that array issue i just mentioned
wasn't related to s3 though just the result of a cffile upload
with s3 and cffile you need to specify the s3 info in the application or admin (iirc)
to be able to use s3 paths as if they are native
👍 1
Ray's guide is actually the most helpful as I've just echoed what he's said
didn't know it was possible in 9 mind you