I have a site (Linux/Drupal/Apache) that generate a .xlsx file from custom code and its saved to files, but after that I cannot download it from drupal, it give permission denied.
Forbidden You don't have permission to access xxxxxxx.xlsx on this server.
The upload file is saved with -rw------- or 600 permission, and the user/group from Apache.
If I chmod the file to 644 it works.
How can I made that any file generated in that way, will be -rw-r--r-- or 644 ?