File Upload
Data uploads using the Client or API.
Data Submission Guide
For detailed step-by-step instructions on using Song and Score clients for data submissions, see our platform guide on CLI submissions.
Installing Score-Client
To run the score-client using Docker, provide the following environment variables:
STORAGE_URL: Score server URLMETADATA_URL: Song server URLACCESSTOKEN: Valid access token
Use this command to run a Score Client docker container:
docker run -d --name score-client \
-e ACCESSTOKEN=${token} \
-e STORAGE_URL=${scoreServerUrl} \
-e METADATA_URL=${songServerUrl} \
--network="host" \
--platform="linux/amd64" \
--mount type=bind,source="$(pwd)",target=/output \
ghcr.io/overture-stack/score-client:latest
Replace all ${} placeholders with your environment's values.
Detailed command breakdown
-d: Runs container in detached mode (background)-e ACCESSTOKEN=${token}: Access token from the platform's auth service-e STORAGE_URL=${scoreServerUrl}: Score server URL-e METADATA_URL=${songServerUrl}: Song server URL--network="host": Uses host network stack--platform="linux/amd64": Specifies container platform--mount type=bind,source="$(pwd)",target=/output: Mounts current directory to container's/output
Uploading File Data
Use the Score Client's upload command to upload file data. Main upload methods:
--file: Upload a specific file by path--manifest: Upload files based on a manifest file--object-id: Upload a specific file by object ID
Upload Options
| Option | Description |
|---|---|
--force | Re-upload existing files (overwrite) |
--md5 | Specify MD5 checksum of the file |
--validate | Validate file using MD5 checksum |
--verify-connection | Verify object storage connection before upload |