No, it is not legal because they upload copyrighted content and they do not have permission to upload them. That is how most torrent websites function.