Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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! 👩🏼‍💻