Yes, you can upload your music that contains samples provided you acquire the necessary licenses. In order to legally use a sample from a copyrighted song in your own music, you need to obtain a license for the usage of the master recording (which is often owned by a label) and a license for the usage of underlying composition (which is controlled by the publisher/songwriter). These licenses must cover both streams and downloads, for an appropriate amount in either case.

For more information take a peek at this article from sound on sound.

Did this answer your question?