简体   繁体   中英

I am getting an error when trying use Cloudinary storage, Must Supply API key?

在此处输入图像描述

I am a student and new to Cloudinary and API credentials. I was trying to use Cloudinary storage and image upload for my app. After adding my credentials and running by command EDITOR="code --wait" rails credentials:edit accidentally I pressed Control + C on Credentials. Now when I try to upload image I get the following error. Can it be because I pressed control + c or can it be some other API key error. How can I fix this error please?

This error means that the app can't find your Cloudinary credentials. You can use the following page - https://cloudinary.com/documentation/rails_integration#configuration - to choose one of the 3 ways to supply the Cloudinary credentials (cloud_name, api_key and api_secret) in your Rails app. For example, using the cloudinary.yml file which you can download from your Cloudinary Dashboard directly and place it in the config folder inside your app's directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM