It's actually the case the vast majority of Universities have clauses that give them IP ownership of all student work.
This is not so they can pettily sue random students for posting essays online, though, it's to lazily blanket cover situations where e.g. a student might work on a dissertation with a supervisor then run off to industry with their coveted £10m of IP.
The awkward thing is they could *possibly* at a real stretch litigate you for doing this. They will not care, notice, or bother, though. It's the same with academics sticking the many, many pre-prints on researchgate etc. that could *probably* be taken to court *somewhere* but no publisher in their right mind would bother.