It may be better to stay away from samples unless you have written permission from the owner(s). If you do have permission, you can upload music with samples but you must connect all rights owners with correct percentages of ownership before the song will be discoverable.
If you want to sell a song that contains samples, you must be certain that those samples are royalty-free and cleared for use, including securing permission from the copyright owner(s).
For more details, click here to learn if you can release a song that contains samples.