1. He uploaded the file on Youtube.

2. He uploaded the file onto Youtube.
3. He uploaded the file to Youtube.

4. He uploaded the file on the website.
5. He uploaded the file onto the website.
6. He uploaded the file to the website.
========================
Are they all grammatical?

2 answers

Yes, They are all grammatical.
3 and 6 are the best.