example on how to use the media.upload API with PHP