Moved upload_api defn to ContentUpload class