With nginx and homebrew installs, you may see the following error if you have installed nginx with homebrew (or otherwise) and are seeing errors when you try an upload files using wordpress or otherwise:
nginx/client_body_temp/0000000007" failed (13: Permission denied) where the number of the temp directory may be different.
/usr/local/var/run/nginx folders may have been set with restrictive users or permissions (or depending on your setup something like
/opt/homebrew/var/run/nginx). Cd into that folder with
cd /usr/local/var/run/nginx and run
sudo chown -R <your_admin_user>:admin client_body_temp/ to allow the right processes to be able to upload the files.