appwrite/docs/examples/0.13.x/console-web/examples/storage/get-file-view.md
Damodar Lohani b2d1d88ffb docs
2022-01-30 15:14:52 +05:45

260 B

const sdk = new Appwrite();

sdk .setEndpoint('https://[HOSTNAME_OR_IP]/v1') // Your API Endpoint .setProject('5df5acd0d48c2') // Your project ID ;

let result = sdk.storage.getFileView('[BUCKET_ID]', '[FILE_ID]');

console.log(result); // Resource URL