Use the eval property to evalate an image on upload and dynamically add tags and metadata based on the results.
- Create an environment variable file
.envand inside add:
CLOUDINARY_CLOUD_NAME="<Your Cloud Name>"
CLOUDINARY_API_KEY="<Your API Key>"
CLOUDINARY_API_SECRET="<Your API Secret>"
- Install the project dependencies with:
npm install
- Run the node script with:
node upload.js
The script will run in your terminal and you'll see the URL results logged.