Skip to content

Azure Storage does not support temporaryUploadUrl() in Laravel Filesystem #12

@santiagotoscano

Description

@santiagotoscano

Description

I'm trying to generate a temporary upload URL using Storage::temporaryUploadUrl(), but it throws an exception saying that the driver does not support it.

Code to reproduce

['url' => $url] = Storage::temporaryUploadUrl(
    $this->fullpath,
    now()->addMinutes(config('filesystems.presigned_expires'))
);

Error message

{
    "message": "This driver does not support creating temporary upload URLs.",
    "exception": "RuntimeException",
    "file": "/var/www/html/vendor/laravel/framework/src/Illuminate/Filesystem/FilesystemAdapter.php",
    "line": 769
}

Steps to reproduce

  1. Set up Laravel with the Azure Storage driver.
  2. Call Storage::temporaryUploadUrl('some/file/path.txt', now()->addMinutes(10));
  3. Observe the exception.

Expected behavior

Since temporaryUploadUrl() is available in Laravel, I expected Azure Storage to support it or provide an alternative.

Environment
Laravel Version: 10
PHP Version: 8.1
Package Version: "azure-oss/storage-blob-laravel": "^1.3",

Thank you in advance for your time and any help you can provide!

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions