To set 777 permissions on a specific folder, follow the steps below Here are the steps to follow to solve this issue.
Right-click on the file that is having chmod 777 “You do not have the permissions to upload file to the folder” error.
Now open the properties tab and change owners, Group, and other permissions to “Read and write” like seen in the screenshot below