added upload_media api call to be used with the non-deprecated media uploader