Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kauanatomb/upload_file_s3
This repository contains a practical implementation of file uploads to Amazon S3 using Active Storage in a Ruby on Rails application. The code demonstrates how to set up Active Storage, configure AWS S3, and handle file uploads in a Rails app.
https://github.com/kauanatomb/upload_file_s3
aws bucket ruby-on-rails s3
Last synced: 3 days ago
JSON representation
This repository contains a practical implementation of file uploads to Amazon S3 using Active Storage in a Ruby on Rails application. The code demonstrates how to set up Active Storage, configure AWS S3, and handle file uploads in a Rails app.
- Host: GitHub
- URL: https://github.com/kauanatomb/upload_file_s3
- Owner: kauanatomb
- Created: 2024-08-02T22:29:28.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2024-09-09T13:40:01.000Z (18 days ago)
- Last Synced: 2024-09-09T16:33:02.757Z (18 days ago)
- Topics: aws, bucket, ruby-on-rails, s3
- Language: Ruby
- Homepage: https://dev.to/kauanatomb/how-to-integrate-aws-s3-with-a-rails-project-for-file-uploads-12ce
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Upload Files to AWS S3 with Active Storage in Ruby on Rails
This repository contains a practical implementation of file uploads to Amazon S3 using Active Storage in a Ruby on Rails application. The code demonstrates how to set up Active Storage, configure AWS S3, and handle file uploads in a Rails app.
Article Reference
For a detailed step-by-step guide on how this implementation was done, you can follow the article here:
How to Set Up File Uploads with Active Storage and AWS S3
.
What Does This Code Has?
- Sets up a Rails project with Active Storage for handling file uploads.
- Configures AWS S3 as the storage service for uploaded files.
- Demonstrates how to create and attach images to models (such as a
Post
model). - Provides an example of how to display uploaded file in views and how to manage multiple file attachments in the models.
This repository serves as a practical example of integrating AWS S3 with Ruby on Rails for handling file uploads securely and efficiently.
Getting Started
Feel free to use this project as a starting point to explore and challenge yourself with Amazon S3 integration in Ruby on Rails. To get the most out of it, make sure to follow the configuration steps in the accompanying article to set up your own AWS S3 bucket and fully configure your Rails environment. Happy coding! 👩🏼💻