pass context to upload