chmod files and directories to 775 before uploading