dtsc1684 2013-01-16 10:06
浏览 46

jquery文件上传插件不能用于超过5 MB的文件

I have implemented jquery file upload plugin in Codeigniter, for any ext of file for my site. I have upgrade the upload files size to 50 mb. but while uploading files greater than 8 mb, it gives an error ( It works for less than 8 mb.). When I checked it, it shows that, progress bar and ajax process stop abnormally and $_FILES[] - this array is empty in php. For this I have increase the timeout for ajax. Then ajax process and progress bar process works fine but still I got $_FILES[] array empty. Anybody have solution or suggestion for this issue. I want to use this plugin only.

Thanks in advance.

  • 写回答

1条回答 默认 最新

  • doujing1156 2013-01-16 13:16
    关注

    I think this this is because your hosting-provider has limited downloading files larger than 8 MB - this is similar to the system settings. Try to add to the .htaccess-file in the site root directorystring: 'php_value memory_limit 50M'

    Just be careful: if your hosting provider has blocked php_value - directives, it can lead to the 500 error (then you have to ask your provider to increase the limit of uploading files)

    评论

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮