Uploading image files to a specific folder?
I tried the folder preset for the upload API for nodeJS.
The code doesn't seem to be working as my image uploads from express keep getting sent to the main dashboard while the designated folder remains empty. Any thoughts? I've been searching for tutorials on how to implement this for a while.
0
-
Hi Royce,
Please include the Node.js SDK like this: cloudinary = require('cloudinary').v2 (including the v2).
Then use this code to upload an image to the 'my_folder' folder:
cloudinary.uploader.upload("file",
{ folder: "my_folder" },
function(error, result) { console.log(result, error); });Let us know if you need any further assistance.
4
Post is closed for comments.
Comments
1 comment