dsxay48646 2011-03-25 20:29
浏览 54
已采纳

如何更改Drupal CKEditor模块w / CKFinder的最大上传大小?

All uploads made through CKEditor in CKFinder return the message "Invalid file. The file size is too big." when they exceed a certain size, even though I have defined the maximum size to 10MB every place I can think of.

/sites/all/modules/ckeditor/ckfinder/config.php
Every resource type has their maxSize var set to 15728640 bytes. e.g.

$config['ResourceType'][] = Array(
        'name' => 'Files',              // Single quotes not allowed
        'url' => $baseUrl . 'files',
        'directory' => $baseDir . 'files',
        'maxSize' => '10M',
        'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip',
        'deniedExtensions' => '');

I found a maxSize var in /sites/all/modules/ckeditor/ckfinder/plugins/fileeditor/plugin.js as well which I have modified, no luck.

phpinfo() shows the following relevant settings:
post_max_size: 20M
upload_max_filesize: 10M

Both of which should be fine for 10MB uploads.

What else can I change to fix this?!

  • 写回答

2条回答 默认 最新

  • duan5362 2011-03-29 13:38
    关注

    So it turns out that this was a problem with my hosting settings. In an act of desperation, I e-mailed the web host for ideas, and although my phpinfo() was reporting those variables correctly, they told me this:

    You were having issues earlier because you had not set the suPHP configuration path in the .htaccess file. We have now added the suPHP path to the .htaccess file.

    I don't quite understand, but now it works, it was nothing to change in the Drupal setup itself. Thanks for the help everyone. (for reference, this is with http://canadianwebhosting.com)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器