You do not need to verify an integrity, because otherwise the file wouldn’t be possible to decrypt. It’s also wouldn’t be confirmed until uploaded.
However, you may request a metainformation of the object. If it was uploaded using S3, each such object has ETag with a checksum.
Using aws CLI:
aws s3api head-object --endpoint https://gateway.storjshare.io --key test/3TB.mp4 --bucket video
You would receive something like that:
{
"AcceptRanges": "bytes",
"LastModified": "2024-06-12T03:54:22+00:00",
"ContentLength": 3298534883328,
"ETag": "\"085c060e134663db10b91a9e9ccdb597\"",
"ContentType": "application/octet-stream",
"Metadata": {}
}
Using uplink CLI:
uplink meta get sj://video/test/3TB.mp4
would return something like that:
{
"content-type": "application/octet-stream",
"s3:etag": "085c060e134663db10b91a9e9ccdb597"
}
But it works only for objects uploaded via S3, not Storj native. At least now.