Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Error: ENOENT: no such file or directory, open

cloudinary.config({
  cloud_name: process.env.CLOUDINARY_NAME,
  api_key: process.env.CLOUDINARY_API_KEY,
  api_secret: process.env.CLOUDINARY_API_SECRET,
  shorten: true,
  secure: true,
  ssl_detected: true
})

const response = await cloudinary.uploader.upload(req.file.path)
console.log(response)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #open
ADD COMMENT
Topic
Name
9+1 =