我使用Laravel 6.2。我尝试上传视频。大小约为700mb,但是当我提交表单时,我在Chrome中收到以下错误:
The connection was reset
我试图上传一个大小约为5mb的视频,并且效果很好。
我禁用了XCache,但是它不起作用。
P.s:Post_max_size,上传文件大小为2gb
答案 0 :(得分:0)
尝试以下操作:
Apache :编辑您的In [15]: class FooDec:
...: def __get__(self, instance, owner=None):
...: print(f'__get__ called with: instance: {instance}, owner: {owner}')
...: def __set__(self, instance, value):
...: print(f'__set__ called with: instance: {instance}, value: {value}')
...:
In [16]: class Meta(type):
...: foo = FooDec()
...:
In [17]: class People(metaclass=Meta):
...: foo = FooDec()
...:
In [18]: People.foo
__get__ called with: instance: <class '__main__.People'>, owner: <class '__main__.Meta'>
In [19]: People.foo = 100
__set__ called with: instance: <class '__main__.People'>, value: 100
In [20]: p = People()
In [21]: p.foo
__get__ called with: instance: <__main__.People object at 0x7faa0b2cb1c0>, owner: <class '__main__.People'>
In [22]: p.foo = 1
__set__ called with: instance: <__main__.People object at 0x7faa0b2cb1c0>, value: 1
文件,并增加httpd.conf
和max_execution_time
:
max_input_time
PHP :您还可以增加<Directory "[path/to/this/directory]">
php_value upload_max_filesize 2000M
php_value post_max_size 2000M
php_value max_execution_time 600
php_value max_input_time 600
</Directory>
文件中的时间和大小:
php.ini
然后,重新启动Apache服务器,然后重试。