Fix upload file

validations permissions.