2020-01-31 09:58:49 +13:00
|
|
|
let sdk = new Appwrite();
|
|
|
|
|
|
|
|
sdk
|
2020-02-16 07:22:34 +13:00
|
|
|
.setProject('5df5acd0d48c2') // Your project ID
|
2020-01-31 09:58:49 +13:00
|
|
|
;
|
|
|
|
|
2020-02-16 19:27:55 +13:00
|
|
|
let result = sdk.storage.getFileView('[FILE_ID]');
|
2020-01-31 09:58:49 +13:00
|
|
|
|
2020-02-16 19:27:55 +13:00
|
|
|
console.log(result); // Resource URL
|