need4speed Posted December 12, 2011 Share Posted December 12, 2011 How can I upload etc. PDF files to my media manager? It says the files are not allowed. I tried to upload by editing my cms page and then click on the link icon, and then browse. 2 Link to comment Share on other sites More sharing options...
need4speed Posted February 28, 2012 Author Share Posted February 28, 2012 Serious I cant be the only one missing this feature. 1 Link to comment Share on other sites More sharing options...
tudoroiuj Posted March 1, 2012 Share Posted March 1, 2012 you cand find in www/admin-newname/ajaxfilemanager/inc a file : config.base.php you must edit and change the following lines: define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,pdf');// // define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,pdf'); and define("CONFIG_VIEWABLE_VALID_EXTS", 'gif,jpg,png,pdf'); change in (add .pdf): define("CONFIG_VIEWABLE_VALID_EXTS", 'gif,jpg,png,pdf'); That's it. Good luck! 3 Link to comment Share on other sites More sharing options...
need4speed Posted March 7, 2012 Author Share Posted March 7, 2012 You rock!!! Thank you very much. Link to comment Share on other sites More sharing options...
diegoao Posted November 18, 2012 Share Posted November 18, 2012 Thanks for the help, really useful -- divatec.es Link to comment Share on other sites More sharing options...
elmadie Posted November 22, 2012 Share Posted November 22, 2012 (edited) Hi! Thank's for that but i still have got a problem: i show you my lines: define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,pdf');// // //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,bmp,tif,zip,sit,rar,gz,tar,htm,html,mov,mpg,avi,asf,mpeg,wmv,aif,aiff,wav,mp3,swf,ppt,rtf,doc,pdf,xls,txt,xml,xsl,dtd');// define("CONFIG_VIEWABLE_VALID_EXTS", 'gif,jpg,png,pdf'); //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,txt'); // define('CONFIG_UPLOAD_INVALID_EXTS', ''); And when i want upload my .pdf clickin on the "insert / edit image" icon it says the file is not allowed too... Same thing clickin on the "insert / edit link" icon. Edit: Oh! it work but i don't know why when i try with a 17Mo File, it fail... Is there a limit? Edited November 22, 2012 by elmadie (see edit history) Link to comment Share on other sites More sharing options...
Pr1s2for Posted December 5, 2012 Share Posted December 5, 2012 Hello, I tried this, but It seems doesn't work for me (PS 1.5.0.17) Could anyone help? Link to comment Share on other sites More sharing options...
diegoao Posted December 5, 2012 Share Posted December 5, 2012 Hi! Thank's for that but i still have got a problem: i show you my lines: define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,pdf');// // //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,bmp,tif,zip,sit,rar,gz,tar,htm,html,mov,mpg,avi,asf,mpeg,wmv,aif,aiff,wav,mp3,swf,ppt,rtf,doc,pdf,xls,txt,xml,xsl,dtd');// define("CONFIG_VIEWABLE_VALID_EXTS", 'gif,jpg,png,pdf'); //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,txt'); // define('CONFIG_UPLOAD_INVALID_EXTS', ''); And when i want upload my .pdf clickin on the "insert / edit image" icon it says the file is not allowed too... Same thing clickin on the "insert / edit link" icon. Edit: Oh! it work but i don't know why when i try with a 17Mo File, it fail... Is there a limit? Yes, You can change the limit in the same archive Hello, I tried this, but It seems doesn't work for me (PS 1.5.0.17) Could anyone help? Maybe it is also a problem with the size? Link to comment Share on other sites More sharing options...
Pr1s2for Posted December 5, 2012 Share Posted December 5, 2012 Maybe it is also a problem with the size? No, it tried with very small file (less than 1Mo) I just worried to know if it's PS version ?? It's works fine for you? Wich version of prestashop are you using? Link to comment Share on other sites More sharing options...
diegoao Posted December 5, 2012 Share Posted December 5, 2012 No, it tried with very small file (less than 1Mo) I just worried to know if it's PS version ?? It's works fine for you? Wich version of prestashop are you using? Yes it works, version 1.5.2.0 Link to comment Share on other sites More sharing options...
Pr1s2for Posted December 5, 2012 Share Posted December 5, 2012 Hello, Thank you it works, And sorry I made a mistake, I want to upload pdf files trough front office with advanced editing features (it works with jpg, gif, png) Link to comment Share on other sites More sharing options...
chahidkhan Posted March 7, 2013 Share Posted March 7, 2013 (edited) I tried with PS 1.5.3.1 not working !! it doesn't show any error but when i click add to cart i get 'Please fill in all required fields, then save the customization' Pls help me Thank u so much Edited March 7, 2013 by chahidkhan (see edit history) Link to comment Share on other sites More sharing options...
slyomat Posted April 21, 2013 Share Posted April 21, 2013 I use PS 1.5.4 and also for me it does not work unfortunately. The lines are slightly different than in previous versions. Since it is very important for me to let the customer to upload files in pdf format, I ask for help. Thanks Link to comment Share on other sites More sharing options...
Vic 27 Posted April 22, 2013 Share Posted April 22, 2013 I can't try it now, but try to do this: define('CONFIG_EDITABLE_VALID_EXTS', 'txt,htm,html,xml,js,css,pdf'); //make you include all these extension in CONFIG_UPLOAD_VALID_EXTS if you want all valid define('CONFIG_OVERWRITTEN', false); //overwirte when processing paste define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,pdf');// // //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,bmp,tif,zip,sit,rar,gz,tar,htm,html,mov,mpg,avi,asf,mpeg,wmv,aif,aiff,wav,mp3,swf,ppt,rtf,doc,pdf,xls,txt,xml,xsl,dtd');// define("CONFIG_VIEWABLE_VALID_EXTS", 'gif,jpg,png,pdf'); //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,txt,pdf'); // define('CONFIG_UPLOAD_INVALID_EXTS', ''); Link to comment Share on other sites More sharing options...
slyomat Posted April 22, 2013 Share Posted April 22, 2013 (edited) Thanks for your help. But it does not work. The lines look exactly like in the post # 3 of tudoroiuj. Any other ideas? config.base.php Edited April 22, 2013 by slyomat (see edit history) Link to comment Share on other sites More sharing options...
Vic 27 Posted April 22, 2013 Share Posted April 22, 2013 But in your Attached Files, changes not appear. I send you the file with changes. (It works in my web, and I have 1.5.3 version) If it not works, I don't know where is the problem... config.base.php 1 Link to comment Share on other sites More sharing options...
slyomat Posted April 22, 2013 Share Posted April 22, 2013 I have PS reinstalled and uploaded your file. It still does not work. But thank you for your effort. Link to comment Share on other sites More sharing options...
sureshsharma Posted May 18, 2013 Share Posted May 18, 2013 HI me too got same problem, I am able to upload the pdf files, But when i try to insert pdf file in product description using iframe, everything goes fine, but it throw error when try to save it. error: Not Acceptable An appropriate representation of the requested resource /adm/index.php could not be found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Using prestashop version 1.5.2.0 Link to comment Share on other sites More sharing options...
Rarukah Posted June 5, 2013 Share Posted June 5, 2013 Hello, I am using the new version PrestaShop 1.5.4.1 I have also applied the changes above to may config.base.php (for customers to upload PDF or any other file extentions) However it does not seem to work when I test the upload. I get the following message: There is 1 error Image format not recognized, allowed formats are: .gif, .jpg, .png below are the changes I made to my config.base according to the instruction above. define('CONFIG_OVERWRITTEN', false); //overwirte when processing paste define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,pdf');// // //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,bmp,tif,zip,sit,rar,gz,tar,htm,html,mov,mpg,avi,asf,mpeg,wmv,aif,aiff,wav,mp3,swf,ppt,rtf,doc,pdf,xls,txt,xml,xsl,dtd');// define("CONFIG_VIEWABLE_VALID_EXTS", 'gif,jpg,png,pdf'); //define('CONFIG_UPLOAD_VALID_EXTS', 'gif,jpg,png,txt'); // define('CONFIG_UPLOAD_INVALID_EXTS', 'gif,jpg,png,pdf'); Some help to resolve this issue to be able to have customers upload PDF or any other extensions would be appreciative. Thanks Link to comment Share on other sites More sharing options...
andy_79 Posted June 19, 2013 Share Posted June 19, 2013 Link to comment Share on other sites More sharing options...
System/D Posted September 11, 2013 Share Posted September 11, 2013 It worked for me on 1.5.4 … thanks a lot! Link to comment Share on other sites More sharing options...
Recommended Posts