Fog.io - Ruby
Learn how to configure Fog.io for use with Filebase.
What is Fog.io?
1. Install Fog.io:
2. Download and install the fog-aws package:
fog-aws package:3. Create the file ~/.fog with the following content:
~/.fog with the following content:default:
aws_access_key_id: <YOUR_FILEBASE_ACCESS_KEY>
aws_secret_access_key: <YOUR_FILEBASE_SECRET_ACCESS_KEY>4. In your Ruby application, add fog-aws as a dependency:
fog-aws as a dependency:5. Connect to the Filebase S3 service:
Using Fog-AWS
Creating a file:
Listing files:
Generating a Pre-signed URL for a file:
Copying a File to a Bucket
Using Multipart Upload
Last updated