We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbcab67 commit ba3e314Copy full SHA for ba3e314
1 file changed
src/Client.php
@@ -261,6 +261,17 @@ public function download(array $options)
261
return isset($options['SaveAs']) ? true : $response;
262
}
263
264
+ public function accelRedirectData(array $options)
265
+ {
266
+ $parsed = parse_url($this->downloadUrl);
267
+
268
+ return [
269
+ 'Authorization' => $this->authToken,
270
+ 'host' => $parsed['host'],
271
+ 'query' => sprintf("FileId=%s", $options['FileId']),
272
+ ];
273
+ }
274
275
/**
276
* Retrieve a collection of File objects representing the files stored inside a bucket.
277
*
0 commit comments