I found that the objectURL is being set incorrectly in ilab-media-tools/vendor/ilab/ilab-aws-media-cloud-sdk/src/S3/PutObjectURIMiddleware.php, in the case of DigitalOcean. Anyway, changing the source of the ObjectURL under the ‘CompleteMultipartUpload’ case works for me on DigitalOcean spaces:
switch ($name) {
case 'PutObject':
case 'CopyObject':
$result['ObjectURL'] = $result['@metadata']['effectiveUri'];
break;
case 'CompleteMultipartUpload':
$result['ObjectURL'] = strtok($result['@metadata']['effectiveUri'], '?'); // $result['Location']
break;
}
-
This reply was modified 7 years, 3 months ago by ctestama.