Set permissions on uploaded files