[Vuejs]-How to Access and Update images from Appwrite in Vue

0👍

AppWrite can actually help you achieve this goal but you’ll need to approach it in a different way.

The Process

  1. You’ll need to create a function inside your AppWrite engine.

  2. In the function and you can use Node, PHP, Dart, Python, and more to write the logic that will do the PDF manipulation.

  3. At the end of the function return a download (see more on that in the end) link to the Vue instance.

  4. Inside your Vue side redirect the user to the download link which contained the headers required for forcing file downloading.

Direct URL to file
In order to get a direct URL to a file, AppWrite has two methods inside the SDK that can help you to give a user direct access.

download – To generate a download link create a link as follow:

https://your-app-write/v1/storage/buckets/[BUCKET]/files/[FILE]/download?project=[PROJECT_ID]

view – To generate a viewable (direct access) link as follow:

https://your-app-write/v1/storage/buckets/[BUCKET]/files/[FILE]/download?project=[PROJECT_ID]

Leave a comment