Not illegal, but it might force the companies to check all the content (which they do nowadays). Now, you may ask, what if the contents are strongly encrypted? Well, the company may very well forbid the upload of that type of content, just like gmail.