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
- How can I disable client-side account re...
Hi everyone! I’m currently building a game backend using Appwrite, and I’d like to prevent users from creating new accounts directly through the client. My go...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...
- Domain is owned by a different organizat...
Hi Appwrite team, I'm trying to add my custom domain **futlive9.com** to my project, but I'm getting the error: "Domain is owned by a different organization." ...