Rookasaur
Rookasaur

Reputation: 541

Laravel 5.1 php.ini upload_max_filesize

I've got an application using Laravel 5.1 which uploads files to the server. The server has a restriction of 8M on file uploads which is too low. Where in the Laravel file structure should a php.ini file be placed to overwrite this?

I've put it in public and receive the following: Fatal error: Class 'PDO' not found in /home/foldername/public_html/solutionfolder/config/database.php on line 16

If I put it anywhere else, such as the root directory it is ignored.

I've looked at editing the .htacess file but that isn't working either.

Upvotes: 1

Views: 3042

Answers (2)

Vahe Galstyan
Vahe Galstyan

Reputation: 1731

Please check your appache config. Is it set AllowOverride = All ?

Upvotes: 1

oseintow
oseintow

Reputation: 7381

You can override the dafault settings by setting your new values in .htaccess.

php_value upload_max_filesize 20M

Upvotes: 0

Related Questions