https://github.com/cloudinary-devs/generate-upload-signature
Node.js example of generating an upload signature
https://github.com/cloudinary-devs/generate-upload-signature
Last synced: 11 days ago
JSON representation
Node.js example of generating an upload signature
- Host: GitHub
- URL: https://github.com/cloudinary-devs/generate-upload-signature
- Owner: cloudinary-devs
- Created: 2024-07-19T11:51:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T07:57:38.000Z (almost 2 years ago)
- Last Synced: 2025-03-20T17:54:03.907Z (about 1 year ago)
- Language: JavaScript
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# generate-upload-signature
Node.js example of generating an upload signature
## Install packages
```
npm i
```
## Set .env file
Create a .env file with the following contents (replacing the 'YOUR' placeholders):
```
CLOUD_NAME='YOUR_CLOUD_NAME'
API_SECRET='YOUR_API_SECRET'
API_KEY='YOUR_API_KEY'
```
## Run
```
node sig_example.js
```
Copy and paste the curl command to upload the image to your product environment using the Cloudinary Upload API.