Better Programming

Advice for programmers.

Follow publication

Member-only story

How to Upload Files in a React and Rails App

Reinald Reynoso
Better Programming
Published in
6 min readApr 7, 2020

Photo by Pero Kalimero (Unsplash)

In this guide, we will cover how to upload images/videos in a React application.

For the server, we will be setting up a Rails API to store the information of the image/video. For the actual storage of image/video, we will be including a third-party service called Cloudinary. It is a cloud-based image and video management platform.

Let’s begin by signing up with an account at Cloudinary as we will need credentials to integrate into the Rails API.

Cloudinary Setup

If you don’t have an account yet for Cloudinary, go ahead and register for one here:

Once you sign up, you should be redirected to the dashboard containing the account details on the top.

For our Rails API, we will need the “Cloud name,” “API Key,” and “API Secret.” For now, we’re actually finished with the set up of Cloudinary. Let’s move on to setting up our Rails API.

Rails API Setup

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Reinald Reynoso
Reinald Reynoso

Written by Reinald Reynoso

Full Stack Developer || Educator || Lifelong Learner

Write a response

Nice work Reinald! I’d love to see a follow-up article with full CRUD operations so the user could list/view images as well as update and delete.

--

Thanks for this! It helped me 😊

--