Added httpMethod for upload (defaults to POST)