Answer the question
In order to leave comments, you need to log in
How to set permissions on a folder so that they do not change when a file is uploaded?
Good afternoon, when uploading files through the Django admin panel from other computers, the file permissions change and as a result a 403 error.
Here is an example:
-rwxr-xrwx 1 uizo uizo 32817 Aug 26 09:19 logo.png
-rw------- 1 uizo uizo 32817 Aug 26 12:00 logo_vFhhEkW.png
-rwxr-xrwx 1 uizo uizo 12396079 Aug 21 11:03 _MG_4279.jpg
Previously, I did this: sudo chmod 777 -R media/*
Surprisingly, this helps but not for long, after a while it repeats.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question