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)

    评论

报告相同问题?

悬赏问题

  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用
  • ¥15 微信小程序协议怎么写
  • ¥15 c语言怎么用printf(“\b \b”)与getch()实现黑框里写入与删除?