[英]PHP POST is losing Data
I have a large POST being made in PHP that can be of any size as it is Tasks on a PRoject Management app... 我有一个用PHP制作的大型POST,它可以是任何大小,因为它是PRoject Management应用程序上的Tasks ...
Here is a screenshot of the edit tasks page which is now cutting off data when I save 这是“编辑任务”页面的屏幕截图,当我保存时,该页面现在正在切断数据
The biggest problem also is that it is a module that will be installed on other peoples servers, so I can't simply modify server settings, what is my best option here? 最大的问题还在于它是一个将安装在其他人的服务器上的模块,因此我不能简单地修改服务器设置,在这里我最好的选择是什么?
Any size? 有什么尺寸 Doubtful.
疑。 You can always set a reasonable limit... even if that limit is 2GB.
您始终可以设置合理的限制...即使该限制为2GB。
In any case, chances are it isn't the raw size that's biting you, but the de-serialization and size limits there. 在任何情况下,都有可能不是咬原始大小的东西,而是反序列化和限制大小。 Try POSTing in a format, such as JSON, and decoding it yourself rather than dealing with PHP's own handling of the POST body.
尝试以JSON之类的格式进行POST,然后自行解码,而不是处理PHP自己对POST正文的处理。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.