Creating a Vue.js Application for Uploading Assets to Cloudinary

Follow

Comments

2 comments

  • Avatar
    Issei Mendez

    How i can delete a image from vuejs?

    0
    Comment actions Permalink
  • Avatar
    Rebecca Peltz

    In order to update or delete an asset from Vue.js, you need to use a server and call the Upload or Admin API. I recommend the Upload API SDK destroy method: https://cloudinary.com/documentation/image_upload_api_reference#destroy_method. If you use Nuxt, you can deploy your own server API with your vue.js code and call it from Vue.js using an http client like fetch or axios. The reason you can do a fully front end destroy (or update) is because it requires credentials (key and secret) which you don't want to expose in the front end. The upload API allows you to use the unsigned preset and that's what makes uploading (create) possible.

    0
    Comment actions Permalink

Please sign in to leave a comment.