Back

Change permission on file when uploading DO Spaces via Storage?

  • 0
  • Self Hosted
  • Storage
Ryan
13 Dec, 2023, 16:51

From what I've seen, all the files that I've uploaded via Storage to a DO Space are showing as private on DO itself, is it possible to change this to have the files as public as I'm looking to also access files from the DO endpoint itself?

TL;DR
The user wants to change the permissions on files uploaded via DO Spaces storage so that they are public. They want to access the files directly because of CDN. However, it is recommended to let Appwrite handle permissions, encryption, and compression. An alternative solution could be using a CDN. The user is currently updating 150k images and plans to write a function that executes on file upload. They will need to interact with the DO Spaces API to change the file permissions.
D5
13 Dec, 2023, 16:52

You will need to interact with DO spaces API

Ryan
13 Dec, 2023, 16:54

Was hoping that wouldn't be the case but thought it might be. I'm going through at the moment and updating the 150k images that are currently on there so I guess I'll just write a function that executes on file upload

D5
13 Dec, 2023, 16:58

An alternative could be using some kind of CDN

Drake
13 Dec, 2023, 21:16

You really shouldn't. Appwrite should be the only one to access the files so that Appwrite can handle permissions, encryption, and compression

D5
13 Dec, 2023, 22:21

The user wants to access the file directly because of CDN

D5
13 Dec, 2023, 22:22

And they're public so permissions, etc doesn't matter

Drake
13 Dec, 2023, 22:45

i still wouldn't 👀

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