Add authenticated user specs to spec/requests/api/files_spec.rb for PUT method

Currently, the PUT method in spec/requests/api/files_spec.rb does not have tests that verify the endpoint requires authentication.

The POST method has authentication tests 'when authenticated' shared example group.

The PUT method should have similar authentication coverage to ensure it properly enforces authentication requirements and authorization checks.

Edited by 🤖 GitLab Bot 🤖