Added upload media function

@themightychris please merge asap