Is it any limit for POST data size in Ajax?

前端 未结 6 1582
小蘑菇
小蘑菇 2020-11-28 09:41

I\'m trying to send an array of data from my page to the MVC Action using jQuery Ajax. Here is my jQuery code:

$(\'#btnSave\').click(
  function () {
    res         


        
6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-28 10:34

    The limit is set through a server 'max_post_size' or similar naming. Typical default server settings are 2-8 MB in one post.

    On the client side, only GET has a maximum limit, generally considered 1500 bytes (minus 30-150 from request headers) and the reason is the MTU in the more lowlevel network hardware

提交回复
热议问题