donglvlao8367 2013-12-14 01:08
浏览 475

base64限制没有显示出来

Simple question that I am unsuccessful in finding a simple answer for. I have an image editor as a part of a text editor. After the user is done editing the image they can save it to the server. In order to do this, I have to use base64 decoding on the PHP side. However, when the dataURL info reaches a certain size, the ajax request fails. The thing about it... the size that it starts failing at is less than 1MB. When it is less than that, the ajax sends it and everything works.

I have the site hosted on godaddy. I tried to find "POST" size limitations, but I can't seem to find anything. I have also tried

echo ini_get('post_max_size');

to see if I can figure out what the limit is set to. But when I run the page, nothing is printed.

Any help or advice would be much appreciated!

  • 写回答

1条回答 默认 最新

  • 普通网友 2013-12-14 01:18
    关注

    Set post_max_size = 8M; with a size of your choice, in php.ini. Otherwise, it could be a problem with what you are trying to decode. The base64 characters must be as follows: http://www.garykessler.net/library/base64.html .

    评论

报告相同问题?

悬赏问题

  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 下图接收小电路,谁知道原理
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度