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 a 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?
- Sending XML data using HTTP POST with PHP
- Receive JSON POST with PHP
- How to prevent form resubmission when page is refreshed (F5 / CTRL+R)
- Reading JSON POST using PHP
- How to get body of a POST in php?
- Download File to server from URL
- Forcing to download a file using PHP
- PHP Redirect with POST data
- Setting Curl’s Timeout in PHP
- curl POST format for CURLOPT_POSTFIELDS
- method=”post” enctype=”text/plain” are not compatible?
- How to send a GET request from PHP?
- Submitting a multidimensional array via POST with php
- How to post JSON to PHP with curl
- Issue reading HTTP request body from a JSON POST in PHP [duplicate]
- Curl and PHP – how can I pass a json through curl by PUT,POST,GET
- POSTing Form Fields with same Name Attribute
- PHP: check if any posted vars are empty – form: all fields required
- How do I use arrays in cURL POST requests
- PHP Redirection with Post Parameters
- Why is password_verify returning false?
- POST a file string using cURL in PHP?
- Send post request using Volley and receive in PHP
- Prevent Back button from showing POST confirmation alert
- Post to another page within a PHP script
- How to change maximum number of POST variable in PHP?
- Super fast getimagesize in php
- PHP – Redirect and send data via POST
- Persistent/keepalive HTTP with the PHP Curl library?
- Posting multidimensional array with PHP and CURL
- Doing HTTP requests FROM Laravel to an external API
- PHP header() redirect with POST variables [duplicate]
- Correct way to set Bearer token with cURL
- PHP: Possible to automatically get all POSTed data?
- Back button re-submit form data ($_POST)
- How to make HTTP requests in PHP and not wait on the response
- Get size of POST-request in PHP
- Using if(isset($_POST[‘submit’])) to not display echo when script is open is not working
- What is the right way to handle $_POST data in MVC?
- How to switch from POST to GET in PHP CURL
- Request headers bag is missing Authorization header in Symfony 2?
- http_build_query with same name parameters
- Add http:// prefix to URL when missing
- PHP $_POST not working? [duplicate]
- HTTP protocol’s PUT and DELETE and their usage in PHP
- Setting POST variable without using form
- Send JSON POST request with PHP