File Upload
1
3
Last updated
Was this helpful?
Uploading input files directly from your computer makes it convenient to process local content for tests.
We require a 4-step process for uploading local files, which involves configuring a data source, retrieving a temporary upload URL, uploading the file, and notifying the server upon completion.
dataSourceDescriptor: file
@type:type.googleapis.com/bytenite.data_source.LocalFileDataSource
When setting up a data source, use the following dataSource object to begin the local upload workflow:
{
"dataSource": {
"dataSourceDescriptor": "file",
"params": {
"@type": "type.googleapis.com/bytenite.data_source.LocalFileDataSource"
}
}
}Let the server know that your upload is ready via the "Upload Completed" endpoint.
response = requests.post(f'http://api.bytenite.com/v1/customer/jobs/uploadcompleted/{job_id}',
json={}, headers={'Authorization': access_token})This notification ends the workflow, linking the uploaded file to your job.
Last updated
Was this helpful?
Was this helpful?

