502 bad gateway nginx gunicorn flask when uploading file 1

502 bad gateway nginx gunicorn flask when uploading file

#Check if the gunicorn has write access to the folder you want to add 
#the file. If it doesn't have, then use
chmod -R 777 the_folder_you_want_to_write_to

Here is what the above code is Doing:
1. Create a file called “test.txt” in the folder you want to write to.
2. Write the string “Hello World” to the file.
3. Close the file.

Similar Posts