0

not able to upload , larger files . My code is working good as it works well for files less than 2MB but for more than 2 MB it fails . being a shared hosting I can even track the error log . any standard method , kindly suggest .

LOKENDRA
  • 384
  • 3
  • 13
  • 1
    See your php.ini for upload max file size. It is set to 2 MB by default – Saba Tandashvili Nov 07 '17 at 06:31
  • Have a look at this existing post https://stackoverflow.com/questions/2184513/change-the-maximum-upload-file-size – Springie Nov 07 '17 at 12:56
  • it was the problem of the php.ini file only, although I was trying to include some custom php.ini file the system was taking this as the primary and was getting overwritten. – LOKENDRA Nov 08 '17 at 01:58

1 Answers1

0

upload max file size has to be updated, as correctly pointed by @saba-tandashvili. After updating the PHP.ini file, I restarted the HTTPD Services. and it worked as per expectations.

LOKENDRA
  • 384
  • 3
  • 13