We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 142808d commit 77dba1aCopy full SHA for 77dba1a
1 file changed
src/BackblazeAdapter.php
@@ -7,6 +7,7 @@
7
use League\Flysystem\Adapter\AbstractAdapter;
8
use League\Flysystem\Adapter\Polyfill\NotSupportingVisibilityTrait;
9
use League\Flysystem\Config;
10
+use League\Flysystem\Util;
11
12
class BackblazeAdapter extends AbstractAdapter
13
{
@@ -118,6 +119,19 @@ public function readStream($path)
118
119
return ['type' => 'file', 'path' => $path, 'stream' => $resource];
120
}
121
122
+ public function accelRedirectData($path)
123
+ {
124
+ $path = Util::normalizePath($path);
125
+ $file = $this->getClient()->getFile([
126
+ 'BucketName' => $this->bucketName,
127
+ 'FileName' => $path,
128
+ ]);
129
+
130
+ return $this->getClient()->accelRedirectData([
131
+ 'FileId' => $file->getId(),
132
133
+ }
134
135
/**
136
* {@inheritdoc}
137
*/
0 commit comments