1. MagicESP
  2. Ubuntu Server 22.04
  3. Set Permission for Uploads Folder

Set Permission for Uploads Folder

Synonyms:
  1. chmod

For user uploads directory, we set the file permission separately. All the directories to 0777, and all the files to 0666. Here is how.

Set permission for user uploads folder

sudo find {{ path.value }} -type d -exec chmod 0777 {} +
sudo find {{ path.value }} -type f -exec chmod 0666 {} +