Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

svenx's avatar
Level 1

Laravel Digital Ocean Space AWS v2

I'm using Digital Ocean's Spaces to store private files, I'm wanting to set up a temporary link when an authenticated user clicks on a specific link, below is the code I am using to generate the pre-signed URL however, the issue is that Digital Ocean only support AWS v2 whereas, Laravel uses AWS v4 I still want to use s3 but is there a way to set the signature of pre-signed URLs to v2 rather than v4?

 $url = Storage::disk('spaces')->temporaryUrl(
    'ea8dfb3d697884c.docx', Carbon\Carbon::now()->addMinutes(5)
  );

Any help would be greatly appreciated.

0 likes
0 replies

Please or to participate in this conversation.