Passing more then 100 arguments to ColdFusion function throws an error

自古美人都是妖i 提交于 2019-11-28 12:09:47

Increasing the "post size limit" only changes how many megabytes can be received, not the quantity.

For that, you need to increase the "post parameters limit" in neo-runtime.xml, by adding* or updating the XML node:

<var name='postParametersLimit'><number>300.0</number></var>

Then save the file and restart the ColdFusion server for the changes to take effect.

* If the 'postParametersLimit' field is not present, you can insert it immediately before <var name='postSizeLimit'> - whilst it's not mandatory to place it there specifically, this is a simple way to ensure it does not get nested invalidly.

Note that this affects the number of form fields (i.e. HTTP POST parameters) being submitted - not the number of arguments to a function, but this is presumably your problem because the latter should not cause a 404 error.

Gavin Baumanis

In ColdFusion 10, the post parameters limit is a setting in the Administrator:

Server Settings / Settings / Request Size Limits / Maximum number of POST request parameters

This setting defaults to 100.

Increase it to the required amount of parameters required to be accepted. (We just had to increase ours to 300!)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!