We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I checked BunnyAPI.php file and found at line 100 this code
BunnyAPI.php
100
if ($url_type === 'BASE') {//General CDN curl_setopt($curl, CURLOPT_URL, self::API_URL . $url); curl_setopt($curl, CURLOPT_HTTPHEADER, array("Accept: application/json", "AccessKey: $this->api_key", "Content-Type: application/json")); } elseif ($url_type === 'STORAGE') {//Storage zone curl_setopt($curl, CURLOPT_URL, self::STORAGE_API_URL . $url); curl_setopt($curl, CURLOPT_HTTPHEADER, array("AccessKey: $this->access_key")); } else {//Video stream curl_setopt($curl, CURLOPT_URL, self::VIDEO_STREAM_URL . $url); curl_setopt($curl, CURLOPT_HTTPHEADER, array("AccessKey: " . $this->stream_library_access_key, "Content-Type: application/*+json")); if ($method === "PUT") { curl_setopt($curl, CURLOPT_POSTFIELDS, file_get_contents($params['file'])); } }
As I see it uses file_get_contents to send the file, which stores the file first in memory This can't work with large files
file_get_contents
May I ask why don't you make it like storage to use CURLOPT_INFILE?
CURLOPT_INFILE
And thanks for the great package!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi
I checked
BunnyAPI.php
file and found at line100
this codeAs I see it uses
file_get_contents
to send the file, which stores the file first in memoryThis can't work with large files
May I ask why don't you make it like storage to use
CURLOPT_INFILE
?And thanks for the great package!
The text was updated successfully, but these errors were encountered: