If i disable permissions and allow any user to download it works totally fine.
But without it, it does not work and would be a major security issue obv.
How I assign permissions in app
TypeScript
const uploadedFile = await storage.createFile(
process.env.APPWRITE_BUCKET_ID,
fileID,
file,
[Permission.read(Role.user(userID)), Permission.write(Role.user(userID))],
);
TL;DR
Developers can download files from storage if permissions are disabled. However, with permissions enabled, the download fails. To assign permissions in the app, the code snippet provided is utilizing `Permission.read(Role.user(userID))` and `Permission.write(Role.user(userID))`.Recommended threads
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...
- [SOLVED] GitHub Student Login Loop Issue
signed up using my GitHub Student Developer Pack. However, whenever I click "Sign in with GitHub", I get stuck on the login page. No matter how many times I try...
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...