I would strongly advise you not to upload anything openly on the internet. If you do so, it is extremely unlikely that any decent, good publisher would ever agree to publish your book. In order for their business model to be sustainable, they must have the privileged right to publish your content.
Publishing the majority of the book on the Internet without significant changes makes it almost impossible for publishers to break even. The only exception is if you pay the publisher the exorbitant fees that are necessary to make a book as "Open Access", but even in this situation, you would still be putting yourself in an extremely risky position, as I think most good publishers would still refuse to publish you.
Even when you are transferring previously-published content into a new book (say, your previous journal articles and book chapters), almost every publisher will demand you to either significantly rephrase and expand on the contents of those papers, or ask direct permission from the journal/book publishers to reuse the content (if you handed over copyright to them as a condition for publishing your research). Note however that it is far more common for publishers to force you to rewrite and expand previously-published work.
Reuse of previously-published work is usually only accepted by publishers if the author is already well-known and has had a long, successful career. Furthermore, reuse of materials in a book (without significant changes), that were previously published in the Internet, is generally considered to be a form of self-plagiarism. Of course, if we are talking about an anthology of published work by a reputed author, there is no problem, but that does not seem to be your situation here.
In other words, publishing your work in advance is a very risky, almost certainly a losing proposition. If you go ahead with this plan, it's likely that the only publishers who will agree to publish you are predatory/vanity presses.