FriendsOfFlarum / upload

The file upload extension with insane intelligence for your Flarum forum.
https://discuss.flarum.org/d/4154
MIT License
177 stars 96 forks source link

Permissions for direct url access on uploaded files #409

Closed stephen322 closed 2 weeks ago

stephen322 commented 1 month ago

Can files accessed by url directly be filtered through the permission system? It's particularly important for private forums.

DavideIadeluca commented 2 weeks ago

@stephen322 All uploaded files are public. There is no possibility to configure this within fof/upload itself.

If you have a specific use case, you could listen to the WillBeDownloaded event and add your custom permission logic there.