net::ERR_CONNECTION_RESET when large file takes longer than a minute

后端 未结 4 605
庸人自扰
庸人自扰 2020-12-11 15:51

I have a multipart file upload in a form with a php backend. I\'ve set max_execution_time and max_input_time in php.ini to 180 and confirmed on the

4条回答
  •  情深已故
    2020-12-11 16:03

    I had the same problem. I used the resumable file upload method where if the internet is disconnected and reconnects back then the upload resumes from the same progress.

    Check out the library https://packagist.org/packages/pion/laravel-chunk-upload

    1. Installation

    composer require pion/laravel-chunk-upload

    1. Add service provider

    \Pion\Laravel\ChunkUpload\Providers\ChunkUploadServiceProvider::class

    1. Publish the config

    php artisan vendor:publish --provider="Pion\Laravel\ChunkUpload\Providers\ChunkUploadServiceProvider"

提交回复
热议问题