making sure there are correct permissions on uploaded files