aliyun / aliyun-oss-php-sdk

Aliyun OSS SDK for PHP
MIT License
996 stars 348 forks source link

laravel aliyuncs/oss-php-sdk Large file upload #224

Open lijiangit opened 2 years ago

lijiangit commented 2 years ago

When I upload a video file larger than 500m, I use postman to upload, and the status code 500 will be returned. I have checked the log file and there is no error message, but when I upload a small file, it will be uploaded normally. I use laravel 8 0 php8. 0 + my English is not very good. I translated it on the translation software

lijiangit commented 2 years ago

I have opened the relevant configuration of PHP,file_uploads = on max_execution_time memory_limit upload_max_filesize post_max_size max_input_time,etc ,And Apache also opens the related timeout configuration ,But I just can't see the error message,did I missing something,

alphasnow commented 1 year ago

You can use the appendObject method to upload a large file in segments. By the way, You can also use aliyun-oss-laravel which is easier. I translated it on the translation software too. @lijiangit