It's perfectly legal UNLESS you enable sharing on said file. I can't speak for all hosts, but SkyDrive for example will only scan files that are made public.