maxzoe Posted October 19, 2012 Share Posted October 19, 2012 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 More sharing options...
vekia Posted October 19, 2012 Share Posted October 19, 2012 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 More sharing options...
maxzoe Posted October 23, 2012 Author Share Posted October 23, 2012 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 More sharing options...
maxzoe Posted October 25, 2012 Author Share Posted October 25, 2012 Anyone? Please! Link to comment Share on other sites More sharing options...
dibs223 Posted November 2, 2012 Share Posted November 2, 2012 as anyone fig this yet??????? I can do it in 1.4 version but not sure how too in 1.5 version???????? plzzz help Link to comment Share on other sites More sharing options...
dibs223 Posted November 2, 2012 Share Posted November 2, 2012 its ok i fig it!!!!!!!!!!!!!! Link to comment Share on other sites More sharing options...
maxzoe Posted November 10, 2012 Author Share Posted November 10, 2012 Hi Didszzz, Do you mind to share how you made it work to increase the upload file limit? Appreciated. Ben Link to comment Share on other sites More sharing options...
J.Sahu Posted August 30, 2013 Share Posted August 30, 2013 (edited) I also stuck in the same issue let's see...did u get any solution ? Edited August 30, 2013 by J.Sahu (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted August 31, 2013 Share Posted August 31, 2013 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 1 Link to comment Share on other sites More sharing options...
Recommended Posts