I need to upload a file with rar
extension and 800MB
size, I add into $config['grocery_crud_file_upload_allow_file_types']
the rar
extension, and works but only in files with 3MB.
I change mi php.ini
and put upload_max_filesize = 1024M
, change $config['grocery_crud_file_upload_max_file_size'] = 1024MB
and add in my grocerycrud mimes.php
'rar' => array('application/x-rar-compressed','application/x-rar', 'application/rar', 'application/octet-stream')
I can see the progres bar but when reach 100% I do not see tha name of the file that it always show, or any error. I save
but in my database do not save the url
.
Please help, I need to upload 800MB. Thanks in advance.
如何上传800MB大小的文件和rar扩展杂货
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- duanchuang3182 2017-05-24 18:05关注
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'),
In your php.ini
; Maximum allowed size for uploaded files. ; http://php.net/upload-max-filesize upload_max_filesize = 1000M
and
; Maximum size of POST data that PHP will accept. ; http://php.net/post-max-size post_max_size = 1000M
and You can also change limits in
.htaccess file:
php_value upload_max_filesize 1000M php_value post_max_size 1000M
NOTE::
Please Restart The Server After Edit In
.php
mime.php
.htaccess
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 微信小程序协议怎么写
- ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?
- ¥20 怎么用dlib库的算法识别小麦病虫害
- ¥15 华为ensp模拟器中S5700交换机在配置过程中老是反复重启
- ¥15 java写代码遇到问题,求帮助
- ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
- ¥15 有了解d3和topogram.js库的吗?有偿请教
- ¥100 任意维数的K均值聚类
- ¥15 stamps做sbas-insar,时序沉降图怎么画
- ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看