아래 두 가지 방법으로 메타데이터를 설정하실 수 있습니다.
방법 1. 시스템 메타데이터 추가 시, 헤더로 바로 추가하는 방법
curl -X PUT ""https://{OBJECT_STORAGE_HOST}/v1/{projectId}/{bucket}/{uploadPath}/{fileName}"" \
--header ""X-Auth-Token: $API_TOKEN"" \
--header 'Content-Type: application/octet-stream' \
--header 'cache-control: no-cache, no-store, must-revalidate' \
--data-binary @/path/to/file
방법 2. 사용자 메타데이터 추가 시, X-Object-Meta-{metadata-name} 헤더 추가 방법
curl -X PUT ""https://{OBJECT_STORAGE_HOST}/v1/{projectId}/{bucket}/{uploadPath}/{fileName}"" \
--header ""X-Auth-Token: $API_TOKEN"" \
--header 'Content-Type: application/octet-stream' \
--header 'X-Object-Meta-cache-control: no-cache, no-store, must-revalidate' \
--data-binary @/path/to/file
자세한 내용은 관련문서를 참고해 주세요.