Home > Article > Operation and Maintenance > How to set a limit on file upload size in phpstudy
The first step is to select "System Service" in the running mode in the pop-up box, and then click the start button above to run the service in "phpstudy".
The second step is to limit the upload file size. We need to modify three parameters; "post_max_size
", "upload_max_filesize
" , "max_input_time
". Then click the other options button, then select "PHP Extensions and Settings", select "Parameter Value Settings", and click on the above three parameters to set them.
The third step is to set the limit on the size of the uploaded file according to your actual needs (generally do not set it too large), click the OK button, and the service will automatically restart. .
The fourth step, or click "Other Options Menu", select "Open Configuration File", then select "php-ini", click to enter the settings, as shown in the figure shown.
Recommended tutorial: phpstudy usage tutorial
The above is the detailed content of How to set a limit on file upload size in phpstudy. For more information, please follow other related articles on the PHP Chinese website!