Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Good evening, everyone, Is it possible to obtain a protected url to download files on a private space? I also tried with Flysystem to distribute the files for download, but I can’t, they’re all corrupted.
$client = new S3Client([
'credentials' => [
'key' => '',
'secret' => '/pn8IBKqObu7TAM',
],
'region' => '',
'version' => 'latest',
'endpoint' => 'https://ams3.digitaloceanspaces.com',
]);
$adapter = new AwsS3Adapter($client, '');
$filename = 'toto.png';
$fs = new Filesystem($adapter);
$downloadable_file_stream = $fs->readStream('sounds/toto.png');
$downloadable_file_stream_contents = stream_get_contents($downloadable_file_stream);
$response = new StreamedResponse();
$response->setCallback(function () use ($downloadable_file_stream_contents) {
echo $downloadable_file_stream_contents;
flush();
});
return $response->send();
Thank you very much for your helping. Guillaume
tarekhussien53
figueiredoassuncaoerik
dwiady
Nova
dwiady
ogflue
ekfa99
sofiaguinaga
ace31585
mooware08
andreagolin
KMTECHNOLOGYLA