uploaded files and images not showing When i upload a file, be it a avatar picture or image, the file loads however does not display.

I have checked the permissions on my hosting environment and it seems that everye uploaded file gets a 664 permission and apache as owner.

How can i give the uploaded files the proper permission automatically?
To fix the files permission, your folders and files needs to be readable and writable by Apache user.

Example commands to fix your permissions
(assuming www-data is your Apache user, prefix with sudo if required):

chgrp -vR www-data "$(drush dd %files)" "$(drush dd %private)"
chmod -vR ug+rwX "$(drush dd %files)" "$(drush dd %private)"


You need to have drush command available. If you don't have drush, just replace above sub-commands in double-quotes with proper locations to your %files and %private folders.

Then as Drupal admin go to Reports -> Status Report and check for file-system related warnings.