## What I have / What I need:
- OVH Object Storage - private
- Granting access to (mostly) videos for a limited time (temporary Url)
- Kill temporary Url (not required)
## How it works in my project (short version):
- Client (ReactApp) makes a call to my API (wants to access the file)
- My server checks if the user has access (if no - returns error)
- Server generates temporary URL and send response with it to APP (and kills prev tempUrl - if possible, not required)
## What I've tried (PHP code):
(I'm using Laravel Framework with OpenCloud\OpenStack)
My code:
[...]
$client = new OpenStack('https://auth.cloud.ovh.net/v2.0/', [
'username' => '',
'password' => '',
'tenantId' => '',
'tenantName' => "",
]);
$service = $client->objectStoreService('swift', 'WAW1', 'publicURL');
$container = $service->getContainer('');
$object = $container->getPartialObject('');
$url = $object->getTemporaryUrl(530, 'GET', true);
[...]
## Problems / Questions:
- Is it good solution in my case? (if not, which solution should be used)
- I'm waiting 3-5s (on my localhost server) to get response with TempURL (how to make better performance?)
- Can I kill prev temporary URL?
- When I'm using "$object->getTemporaryUrl(530, 'GET', true)" the value (in this example: 530) must be higher than 300/400. If I set this value to 300 and try to use generated URL (instantly after i get response) it returns "401 Unauthorized: Temp URL invalid". Is it problem with time/timezone synchronization or what?
Public Cloud - Problem - Temporary access to files
Related questions
- Can i use my own public cloud vm with floating ip as internet gatewaway for my private network?
13218
26.01.2026 08:13
- IPv6 subnet/extra IPv6 IPs on cloud instances/VPS
11267
31.01.2018 07:31
- Problem with Windows Server 2019 activation
10883
30.12.2020 04:04
- Is the Plesk License included?
10406
02.01.2018 11:56
- Ubuntu 20.04 image in OVH has been marked as DEPECRATED
9249
04.12.2020 23:28
- Automatic Block storage backup - how?
8505
06.05.2020 17:31
- Setup clickhouse with s3 high performance storage class (express onezone)
7829
16.10.2025 13:28
- Private Network shared between two or more Public Cloud projects
7808
11.03.2021 13:19
- Orders for Public Cloud project get cancelled
7184
02.07.2025 16:06
- Error has occurred creating your Public Cloud project
7127
08.10.2021 08:52