Comments (2)
Looks like the docs need to be updated with the S3Provider
. Here is the init method for the S3Provider
:
/**
* Configure the provider. Usually called at startup.
*
* @properties A struct of configuration data for this provider, usually coming from the configuration file
*
* @return S3Provider
*/
public IDisk function configure( required string name, struct properties = {} ){
try {
variables.s3 = variables.wirebox.getInstance( "AmazonS3@s3sdk" );
} catch ( any e ) {
throw(
type = "cbfs.ProviderConfigurationException",
message = "The the S3Provider encountered a fatal error during configuration. The message received was #e.message#."
);
}
if ( !arguments.properties.keyExists( "bucketName" ) ) {
arguments.properties.bucketName = variables.s3.getDefaultBucketName();
}
if ( !arguments.properties.keyExists( "visibility" ) ) {
arguments.properties.visiblity = "public";
}
setName( arguments.name );
setProperties( arguments.properties );
return this;
}
So you need s3sdk
installed, and you can optionally pass bucketName
and visibility
.
What I don't see is any way to configure the underlying S3 instance from cbfs. My guess is you would configure the s3sdk directly. That doesn't allow for interacting with multiple S3 instances, though....
from cbfs.
The documentation for S3 configuration is available here: https://cbfs.ortusbooks.com/getting-started/providers/s3-provider
from cbfs.
Related Issues (20)
- S3 Implementation of uri method is incorrect HOT 1
- S3 Provider does not have the same uri/url methods as LocalProvider HOT 1
- LocalProvider cannot create a file if contents are binary
- Add upload method to providers
- Add support for public hostname
- Introduce a File object and proxy method calls to the disk to provide a more fluent API HOT 1
- Add File/Directory/Disk Lifecycle Events
- Add download method to deliver files directly to browser
- Add createFromFile method
- Inconsistent 'type' field returned on S3 provider when calling .info()
- CBFS is returning JSON files as binary
- Pass file object where it makes sense for announced interceptions
- Add disk methods for copying and moving files between two disks. HOT 2
- The createFromFile() method in the File Object should return the File object, not the Disk Object
- File creation methods in the providers should return File Objects for consistency and chainability.
- url() and download() methods are missing from the File object HOT 1
- Calling disk.files() or disk.files( "" ) throws and exception on the S3 provider. HOT 1
- Allow providers to have an additional visibility of "inherit"
- When the path in properties.path, in the configuration, has "/" slashes that it causes issues in Windows systems
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cbfs.