On the other hand if that file is shared publicly, Google might be liable under some jurisdictions IIUC.
I d assume that they check some hashes of the file against a database to check for copyright infringement. If only specific actions are not permitted on the file e.g. sharing it widely, this could seem reasonable?
Curious to learn more, what could be other actions the service provider could take to avoid getting a lawsuit?