Back

Facing issues with file deletion from storage

  • 0
  • Web
michealhe.
6 May, 2024, 07:03

The file upload is working just fine. I am using Appwrite SDK 14.0.0, I had to use an earlier version due to some other issue. Thanks.

TL;DR
Developers are facing issues with file deletion from storage. Collection or bucket level permissions affect all files, while file/document level permissions only affect specific ones. Check permissions settings to ensure delete permission is granted for the file. The file upload is working fine.
D5
6 May, 2024, 07:16

Do you have permission set to delete such file?

michealhe.
6 May, 2024, 07:19

Permissions as in, settings > permissions?

michealhe.
6 May, 2024, 07:19
D5
6 May, 2024, 07:24

Yes

D5
6 May, 2024, 07:25

That affects all the files in storage

D5
6 May, 2024, 07:25

Except if the permissions are file-level

michealhe.
6 May, 2024, 07:27

Sorry if i sound noob, but does file-level mean?

michealhe.
6 May, 2024, 07:27

Also am I doing something wrong?, the file upload works just fine

D5
6 May, 2024, 07:35

Collection or bucket level permissions affect all the files inside such collection or bucket.

File/document level permissions affect only to some specific files/documents, so meanwhile you can modify and delete some docs, you will not be able to do the same with others

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