Skip to content

Cloudinary: Upload and Download Images #50

@brandonw504

Description

@brandonw504

Research how to use Cloudinary (a CDN) to upload images of products and fetch them. If you're not familiar with Content Delivery Networks (CDNs), I recommend quickly learning about them before starting. If you ever get stuck, you can take a look at the Include CMS, which has an example of using Cloudinary.

You should make a page where users can upload images, and when someone visits the list of products page, you'll fetch the product images to display. When building, test with a personal Cloudinary account (it's free) before we move to the Include account.

Tasks:

  • Add a Media object to the API that contains file information and the cloudinary ID.
  • Create a reusable utility function that takes in a media item and uploads it (you'll need to create a Cloudinary account, and you'll make a POST request to upload media)
  • Use the utility function to add image uploading to the page on the frontend, and fetch images to display them on the product list

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions