如何上传大小为 800MB 且扩展名为 rar 的文件 grocery crud

How can I upload file with 800MB size and rar extension grocery crud

我需要上传一个扩展名为 rar、大小为 800MB 的文件,我在 $config['grocery_crud_file_upload_allow_file_types'] 中添加了 rar 扩展,并且可以使用,但仅适用于 3MB 的文件.
我更改 mi php.ini 并放入 upload_max_filesize = 1024M ,更改 $config['grocery_crud_file_upload_max_file_size'] = 1024MB 并添加到我的 grocerycrud mimes.php 'rar' => array('application/x-rar-compressed','application/x-rar', 'application/rar', 'application/octet-stream')
我可以看到进度条,但是当达到 100% 时,我看不到它始终显示的文件名或任何错误。我save但是在我的数据库中没有保存url。 请帮忙,我需要上传800MB。提前致谢。

Settings For for allowed type:

$config['allowed_types'] = 'zip|rar';

Replace the mime.php configuration for zip and rar to:

'zip'  =>  array('application/x-zip', 'application/zip', 'application/x-zip-compressed','application/force-download','application/octet-stream'),
'rar'  =>  array('application/x-rar', 'application/rar','application/x-rar-compressed','application/force-download','application/octet-stream'),

在你的php.ini

; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 1000M

; Maximum size of POST data that PHP will accept.
; http://php.net/post-max-size
post_max_size = 1000M

并且您还可以在

中更改限制

.htaccess file:

php_value upload_max_filesize 1000M
php_value post_max_size 1000M

注意::

Please Restart The Server After Edit In .php mime.php .htaccess