Jump to content

Maximum file size upload. Do you know how?


Recommended Posts

Hi everyone,

 

I run a photo print business on Prestashop v1.5. By default, Prestashop allows 8mb max file size for image uploading, but our customers' files are often larger than 20mb, with more than 20 images each order. My questions are:

 

a. How can I increase the maximum file upload size limit? What file(s) should I change?

 

b. Prestashop only allows Gif, Jpg, and Png file types for uploading. How can I add more file type extensions for uploading such as PDF, PSD, MS Excel, Word, etc?

 

Let me learn if you know how.

 

Thanks,

 

Ben

Link to comment
Share on other sites

  On 10/19/2012 at 6:16 AM, maxzoe said:

Hi everyone,

 

I run a photo print business on Prestashop v1.5. By default, Prestashop allows 8mb max file size for image uploading, but our customers' files are often larger than 20mb, with more than 20 images each order. My questions are:

 

a. How can I increase the maximum file upload size limit? What file(s) should I change?

 

b. Prestashop only allows Gif, Jpg, and Png file types for uploading. How can I add more file type extensions for uploading such as PDF, PSD, MS Excel, Word, etc?

 

Let me learn if you know how.

 

Thanks,

 

Ben

 

You use some external features for uploading stuff by your customers?

Link to comment
Share on other sites

Hi vekia, I'm not using any external upload modules because PS has an upload feature in the product combination option. But I said, it limits to only 8mb. My question is how to change the max upload limit?

 

Thanks.

 

Ben

Link to comment
Share on other sites

  • 2 weeks later...
  • 9 months later...

see classes/FileUploader.php

 

the __contsruct sets the sizeLimit (default value if not set)

 

hope that helps

 

the allowed extensions and size is set by

 

youradminfolder/AdminProductsController

public function ajaxProcessAddImage()
{
 self::$currentIndex = 'index.php?tab=AdminProducts';
 $allowedExtensions = array('jpeg', 'gif', 'png', 'jpg');
 // max file size in bytes
 $uploader = new FileUploader($allowedExtensions, $this->max_image_size);
////size
  	 $this->max_file_size = (int)(Configuration::get('PS_LIMIT_UPLOAD_FILE_VALUE') * 1000000);
       $this->max_image_size = (int)Configuration::get('PS_PRODUCT_PICTURE_MAX_SIZE');

 

I don't know there is anywhere to change the file/image values other than using phpmyadmin on your mysql table (yourprefix)_configuration

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...