How tdo I change PrestaShop virtual product size to 300MB?

Avatar
  • Answered
When I attempt to set the "Maximum size for a downloadable product" to greater than 128MB, I get "The limit chosen is larger than the server's maximum upload limit. Please increase the limits of your server."

I tried changing upload_max_filesize = 300M in /public_html/php.ini but that did not help.

What else do I change?
Avatar
Arn
Hello Shimola, Sorry to hear about your problem. The upload limit for a virtual product is a hard-coded number in a specific file. I'm not sure what version of PrestaShop that you're using so here are two solutions: For version 1.6, please look at our article on Fixing the Error: "This file is missing" in PrestaShop 1.6 For version 1.5, you'll need to do the following:
  1. Open up cPanel and the click on the file manager icon
  2. Navigate to the folder that contains your PrestaShop installation. If you loaded PrestaShop using the primary domain of your account, then the default folder you'll need to find is PUBLIC_HTML.
  3. Once you're in the folder, look for a folder named "config", then click on it to open it.
  4. Next look for a file named config.inc.php. Click on the file and then select EDIT from the menu at the top of the file manager -you can also right-click and select EDIT (or Code edit).
  5. Look for this line of code: ini_set('upload_max_filesize', '100M'); and then change the limit to the size that you need.
  6. SAVE the changes
  7. That should take care of the upload size limit issue. If you're still having problems, then please leave more details on the problem and we would happy to look into it for you. Regards, Arnel C.