Hello, is there a way to restrict to any files uploaded to a certain folder on `/wp-content/uploads/example-folder`
For example, on the frontend. Registered user upload a file, and it’s stored as `/wp-content/uploads/example-folder/file.png`
Hence, if someone has the link to it, anybody can access the file the registered user uploaded.
`example.com/wp-content/uploads/example-folder/file.png`
Is it possible to:
* Only a logged-in admin and the logged-in user who uploaded the file can access the file via its link.
* And
* Other logged-in registered users or unregistered guest will not be able to access the file even if they have the URL to the file.
The goal is to ensure only those who has permission to access to the uploaded file can access it and nobody else.
[ad_2]