Friday, January 26, 2024

[SOLVED] upload / download permissions

Issue

I currently have a folder which the public uploads files to.

I want to be able to download these files via a link, but not to be able to browse the upload folder. But at the same time, i need to keep that folder writable for uploads.

What permissions would I need to set?

Cheers, Doug


Solution

Open the .htaccess file in your current folder, or create it if it doesn't exist.

If Options Indexes exists modify it to Options -Indexes or else add Options -Indexes as a new line.

Save the file and exit.

You might need to restart Apache.



Answered By - dimme
Answer Checked By - Marie Seifert (WPSolving Admin)