Page 1 of 1

Product downloads

Posted: 18 Jun 2017, 01:10
by wendallb
How can increase the product downloads over 10MB's? I have some large files or is there another way?
Server php.ini says 20mb but cart says 3mb.

Thanks
WendallB

Re: Product downloads

Posted: 18 Jun 2017, 14:29
by Jan
Hi, the parameter is missing in config.xml. I will add it to next version.

For now, you can add it to the code.

Open:
administrator\components\com_phocacart\config.xml

and add:

Code: Select all

<field name="upload_maxsize" type="phocatext" size="20" default="3145728" label="COM_PHOCACART_FIELD_MAXIMUM_SIZE_UPLOAD_FILE_LABEL" description="COM_PHOCACART_FIELD_MAXIMUM_SIZE_UPLOAD_FILE_DESC"/>
open:
administrator\language\en-GB\en-GB.com_phocacart.ini

add:

Code: Select all

COM_PHOCACART_FIELD_MAXIMUM_SIZE_UPLOAD_FILE_DESC="The maximal size for an upload (in bytes). Use zero for no limit."
COM_PHOCACART_FIELD_MAXIMUM_SIZE_UPLOAD_FILE_LABEL="Maximal Upload Size"
Jan