Is It Any Limit for Post Data Size in Ajax

Is it any limit for POST data size in Ajax?

JSON has a maximum length! I need to increase this value. In web.config add the following:

<appSettings>
<add key="aspnet:MaxJsonDeserializerMembers" value="150000" />
</appSettings>

Is there any size limitation for ajax post?

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?

jquery ajax POST size limit?

I figured it out. For some reason NetBeans' debugger tells me $_POST['data'] is null, but it's not. To manually determine the size of the $_POST received, I used these calls:

$request = http_build_query($_POST);
$size = strlen($request);

Also, I was putting $_POST['data'] into CodeIgniter's session:

$event_array = array('event' => $_POST['data']);
$this->session->set_userdata($event_array);

Which was coming up empty leading me to further believe that $_POST was empty. But the problem was instead $this->session, which apparently has a 4K size limit (according to this post).

Does jQuery has a limit on the size of uploaded files when using ajax?

There is no limit on the size of the upload files when using ajax. For example, in youtube or facebook (which use ajax to upload files) you can upload whatever you want without any restriction on the size of the uploaded files.

The reason that made your website fail when uploading large files is that you may not set the size of maximum upload files. Check this question, it may help you.

jQuery ajax POST data variable can hold max 199 json array

What "Hussy Board" said you can change in php.ini the max_input_vars, the default limit is 1000. Also checkout the post_max_size



Related Topics



Leave a reply



Submit