Can't pass the value of result.public_id after submitting the image.

Comments

1 comment

  • Avatar
    Michal Kuperman

    Hi Aleksandr,

    After the file is uploaded to your account, the upload method would return a promise which contains an Asset with all the asset's information including the public_id, or an Error if the upload failed. 

    For example: 

    const asset = await this.$cloudinary.upload(file, {
    upload_preset: 'my_preset',
    });
    console.log (asset);

    Let us know if you have any further questions.

    0
    Comment actions Permalink

Please sign in to leave a comment.