alice@u16:~$ sudo vi /etc/php/7.0/fpm/php.ini
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
post_max_size = 128M
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
upload_max_filesize = 128M
****************************************************************************
แบบ .htaccess
1) Create a .htaccess file in the root folder of web server.
2) Put the following code into .htaccess file.
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 200
php_value max_input_time 200
อ้างอิง : https://spalinux.com/2017/10/fix-php-maximum-upload-file-size-on-nginx-web-server