Is there any size limitation for ajax post?

后端 未结 4 661
独厮守ぢ
独厮守ぢ 2020-12-03 11:42

I\'m posting ckeditor content via Ajax to php. But getting 4-5 sentence of posted material in my db table. I wonder, Is there any size limitation for ajax post? is there an

相关标签:
4条回答
  • 2020-12-03 12:10

    There isn't any size limitation for POSTs in HTTP.

    Maybe you have an & in your content variable. Then everything after that would be stripped after that.

    Other than that what type do you use for your data column in the database? Is it, by any chance, something like varchar(1000)? Then anything bigger would also get stripped.

    Check what you actually receive on the server end, so you know if you've got a problem with the code or the database.

    0 讨论(0)
  • 2020-12-03 12:14

    In theory the limits on AJAX requests are the same on all the other requests, so it depends on your web server/app setup. See also Max length of send() data param on XMLHttpRequest Post

    0 讨论(0)
  • 2020-12-03 12:25

    You have a limitation on the Apache server. Look for LimitRequestBody directive.

    This may be helpful:

    http://gallery.menalto.com/node/14870

    0 讨论(0)
  • 2020-12-03 12:27

    The HTTP specification doesn't impose a specific size limit for posts. They will usually be limited by either the web server or the programming technology used to process the form submission.

    What kind of server do you use?

    0 讨论(0)
提交回复
热议问题