I use laravel framework v5.8 for my project and I need to upload video
When the upload is complate it gives me Illuminate\Http\Exceptions\PostTooLargeException
and when I disable this:
if ($max > 0 && $request->server('CONTENT_LENGTH') > $max) {
throw new PostTooLargeException;
}
code in validatePostSize.php it gives me this:
error Warning: POST Content-Length of 16195196 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
and no file uploaded
php.ini settings:
upload_max_filesize=2000M
max_file_uploads=2000M
memory_limit=128M
post_max_size=800M
and I checked them in xampp phoInfo()
how can I resolved this.
htaccess code:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
php_value post_max_size=200M
php_value upload_max_filesize=200M
</IfModule>
phpinfo()?phpinfo()in an example route in your laravel project.Route::get('test', function(){phpinfo();});