Back

file permission and relationship query

  • 0
  • Databases
  • Flutter
  • Storage
kanhaiya lal bohra
15 Nov, 2024, 19:06

I want to restrict direct access to the file stored in the bucket because currently, when I paste the file URL into a browser, I can download the file. Additionally, I have a relationship in my collection, and when I list documents, I receive the complete tree. I only want to query the first collection and, based on certain conditions, fetch the subsequent document from the relationship.

TL;DR
Developers want to restrict direct file access from a bucket to prevent downloads via URL. They also want to optimize queries to only retrieve specific related documents instead of the entire tree. Solution: Implement proper access controls for file permissions. Adjust queries to fetch only relevant documents based on specific conditions.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more