How can i specify folder location with upload_stream method


1 comment

  • Avatar
    Eric Pasos

    Hi Jerry,

    The parameters to the upload_stream method can be added in addition to the callback, which can be done as:

    constcloudStream = cloudinary.v2.uploader.upload_stream(
    function (err, fileUploaded) {
      // In case something hit the fan
      if (err) {

       // All good :smile:

    The "yourtargetfolder" will be automatically created in your Media Library, in case it does not exist.

    Hope this helps.

    Comment actions Permalink

Please sign in to leave a comment.