It depends on a server configuration. If you’re working with PHP under Linux or similar, you can control it using .htaccess configuration file, like so:
#set max post size
php_value post_max_size 20M
And, yes, I can personally attest to the fact that this works 🙂
If you’re using IIS, I don’t have any idea how you’d set this particular value.
Related Contents:
- What is the size limit of an HTTP POST request?
- How do I send a POST request with PHP?
- How can I select and upload multiple files with HTML and PHP, using HTTP POST?
- PHP, cURL, and HTTP POST example?
- Receive JSON POST with PHP
- Can PHP cURL retrieve response headers AND body in a single request?
- How to get body of a POST in php?
- How to post data in PHP using file_get_contents?
- How to send a GET request from PHP?
- How to read if a checkbox is checked in PHP?
- PHP Redirect with POST data
- Setting Curl’s Timeout in PHP
- How to make asynchronous HTTP requests in PHP
- How to prevent form resubmission when page is refreshed (F5 / CTRL+R)
- Doing HTTP requests FROM Laravel to an external API
- What is the canonical way to determine commandline vs. http execution of a PHP script?
- RAW POST using cURL in PHP
- RESTful API methods; HEAD & OPTIONS
- Multiple inputs with same name through POST in php
- php $_POST array empty upon form submission
- curl POST format for CURLOPT_POSTFIELDS
- Correct way to set Bearer token with cURL
- POST an array from an HTML form without javascript [duplicate]
- How to post JSON to PHP with curl
- POST data to a URL in PHP
- HTTP requests with file_get_contents, getting the response code
- Passing $_POST values with cURL
- How to switch from POST to GET in PHP CURL
- How do I print all POST results when a form is submitted? [duplicate]
- How to pass $_GET variables to a PHP script via the command line?
- Load Blade assets with https in Laravel
- POST request with JSON body
- Who Add “_” Single Underscore Query Parameter?
- HTTP protocol’s PUT and DELETE and their usage in PHP
- How to print all information from an HTTP request to the screen, in PHP
- How to use HTTP cache headers with PHP
- Request string without GET arguments [duplicate]
- Curl and PHP – how can I pass a json through curl by PUT,POST,GET
- Persistent/keepalive HTTP with the PHP Curl library?
- Reading JSON POST using PHP
- new limit within php: 1000 fields per POST. Does someone know, if the number can be influenced?
- PHP header() redirect with POST variables [duplicate]
- Send JSON POST request with PHP
- PHP some $_POST values missing but are present in php://input
- Posting multidimensional array with PHP and CURL
- Utility of HTTP header “Content-Type: application/force-download” for mobile?
- PHP – Redirect and send data via POST
- Send HTTP request from PHP without waiting for response?
- What is an appropriate content-type header for JavaScript files?
- How do I use arrays in cURL POST requests