File permissions appear when python reads files


["updated_COO:-18.pdf", "updated__"" -13.pdf", "upload_pdf.py", "20186"+" -20 (1).pdf"]
updated_COO:-18.pdf
updated__"" -13.pdf
upload_pdf.py
20186"+" -20 (1).pdf

["/home/shenjianlin/test_pdf/20186"+" -20 (1).pdf"]
/home/shenjianlin/test_pdf/20186"+" -20 (1).pdf
Traceback (most recent call last):
  File "upload_pdf.py", line 106, in <module>
    up_load_pdf().post_file(url, csrf_token, file)
  File "upload_pdf.py", line 57, in post_file
    files = {"ReportForm[url]": (path.name, open(file_path, "rb"), mimetypes.types_map[path.suffix])}
PermissionError: [Errno 13] Permission denied: "/home/shenjianlin/test_pdf/20186"+" -20 (1).pdf"

I would like to ask whether this kind of file permissions can be obtained automatically through the program in addition to the accident of manually modifying file permissions.

May.06,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5fc4f-44d9d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5fc4f-44d9d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?