Why cloudinary.uploader.upload_stream() does not work with the latest NextJS version?

Mozahedul
Mozahedul Member Posts: 1
let cloudinary = require("cloudinary").v2;
let streamifier = require('streamifier');

let cld_upload_stream = cloudinary.uploader.upload_stream(
    {
      folder: "foo"
    },
    function(error, result) {
        console.log(error, result);
    }
);

streamifier.createReadStream(req.file.buffer).pipe(cld_upload_stream);


Answers

  • Tom
    Tom Member, Cloudinary Staff Posts: 108

    Hi @Mozahedul ,

    Thanks for reaching out. 

    Could you confirm what error messages are you getting? Also, how big is the file you are uploading?

    I'm looking forward to your response.

    Kind Regards,

    Thomas