hello. in my program i have a part for uploading images. i want that users can upload more than 20 image.in localhost i change xampp setting and it solved . but in cpanel i can not do this work. even i upload php.ini file in laravel folder in cpanel but it does not have any effect and just 20 images are uploaded not more.
Uploading php.ini in you application folder has no effect at all!
Have you tried a tutorial on how to update php.ini values in CPanel? Something like this for example: https://chemicloud.com/kb/article/how-to-edit-the-php-ini-file-cpanel/
Unfortunately you cannot use ini_set() to change max_file_uploads (see https://bugs.php.net/bug.php?id=50684)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community