【问题标题】:Cloudinary Video uploading error Entity too large up to 300MBCloudinary 视频上传错误 Entity too large up to 300MB
【发布时间】:2021-03-08 08:50:06
【问题描述】:

我通过库“https://github.com/jrm2k6/cloudder”使用 Cloudinary,但是当我上传大于 100MB 的大型视频文件时,它显示“实体太大:错误,我使用的是 apache 服务器。 也可以尝试 Cloudinary upload_large 功能,但显示相同的错误。

    Cloudder::uploadVideo($tmpFilePath,null, ['resource_type' => 'video','chunk_size' => 60000000000]);
    $response = Cloudder::getResult();

导致的错误:

【问题讨论】:

    标签: php laravel apache laravel-5 video-upload


    【解决方案1】:

    我认为您在 php.ini 中的 upload_max_file_zize 允许上传超过 100MB 的大小,然后将您的 upload_file_size 更新为您想要的任何内容!

    【讨论】:

    • 这里的错误似乎来自 API 端,而不是来自 OP 自己的系统。
    • 我已经更改了 upload_max_file_size =1024 mb 但导致同样的错误。
    【解决方案2】:

    使块大小为 6000000:

    Cloudder::upload_large($tmpFilePath,null, ['resource_type' => 'video',"eager_async" => TRUE, "eager" => ["format"=>"mp4","width"=>1280, "height"=>720, "crop"=>"limit", "duration"=>"7200p"], 'chunk_size' => 6000000]);
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-10-01
      • 2020-07-31
      • 2013-08-09
      • 1970-01-01
      • 2014-09-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多