Mikeeee Posted February 1, 2019 Share Posted February 1, 2019 (edited) Hey, I have a field on my product page to let users upload a file. I'm going to sell LED Panels and I am offering the service to print custom images on it. It works as intended, however users are only allowed to upload .jpg, .png and .gif. As I'm going to be printing these images I would also like for the option to be able to let them upload a pdf file with the image into it. I found a little bit of code regarding the uploader and added the .pdf extension to it as seen below, however this still blocks it from allowing PDF uploads. I suspect that there are their more checks in place to prevent pdf upload or that it might cancel because it tries to convert the pdf to an image and fails? It doesn't display an error on my page even though debug mode is on (maybe because of my theme). I found this in the same file and I suspect it doesn't work because PDF is not being converted to an image and therefore cannot convert? I know that there are modules out there to allow for different file uploads but I think that such a small thing as allowing an extra extension shouldn't be paid for. Does anyone know how to do it? I am using prestashop 1.7.4.2 Edited February 1, 2019 by Mikeeee (see edit history) Link to comment Share on other sites More sharing options...
joane Posted April 26, 2019 Share Posted April 26, 2019 I have the same issue Link to comment Share on other sites More sharing options...
nadina Posted February 11, 2020 Share Posted February 11, 2020 Hi! I have the same problem. Have you found a solution? I could have let the pdf file upload but from the back I can't see it. It's true that it's saved in the uploads folder but the logistics team doesn't have access by ftp, so I need it to be visualized in the order page. Link to comment Share on other sites More sharing options...
tintti Posted June 3, 2020 Share Posted June 3, 2020 Hello, have anyone solved this problem yet? Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2020 Share Posted June 4, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
tintti Posted June 4, 2020 Share Posted June 4, 2020 Great to hear, I can live with that cost... Is it possible to check how it looks like and how it works? Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2020 Share Posted June 4, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
tintti Posted June 4, 2020 Share Posted June 4, 2020 ok, looks good, we can try it. How to down load? Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2020 Share Posted June 4, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
tintti Posted June 4, 2020 Share Posted June 4, 2020 ok, I´ll wait. No hurry. Link to comment Share on other sites More sharing options...
Guest Posted June 5, 2020 Share Posted June 5, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
tintti Posted June 5, 2020 Share Posted June 5, 2020 ok, no worry. No I haven´t modified the files. Link to comment Share on other sites More sharing options...
Guest Posted June 7, 2020 Share Posted June 7, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
tintti Posted June 8, 2020 Share Posted June 8, 2020 great, this is ok for me. - Tintti Link to comment Share on other sites More sharing options...
Guest Posted June 8, 2020 Share Posted June 8, 2020 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
emild Posted April 8, 2021 Share Posted April 8, 2021 (edited) Looks like trivial modfication... 1. modify pictureUpload function in ProductController.php 2. modify 1 backoffice twig file to display the link with name of uploaded file like test.pdf -> because there will be no thumbnail from such a pdf file so Prestashop will not display it in order product details. I will write a complete tutorial in my free time. Edited July 31, 2021 by emild (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted April 9, 2021 Share Posted April 9, 2021 (edited) . Edited July 26, 2021 by Guest (see edit history) Link to comment Share on other sites More sharing options...
emild Posted April 9, 2021 Share Posted April 9, 2021 (edited) Yes, trivial and works with 1.7.7 BUT this solution is a modification, it is not a module that probably offers some additional functions. I haven't checked your module and its capabilities. Edited July 31, 2021 by emild (see edit history) Link to comment Share on other sites More sharing options...
harry84 Posted July 21, 2021 Share Posted July 21, 2021 Is there a solution to enable PDF upload in PS 1.7? It is not for not buying a module, it is simply to try to keep PS as lean as possible when a few changes to the code may be enough. Link to comment Share on other sites More sharing options...
SmartDataSoft Posted July 21, 2021 Share Posted July 21, 2021 @harry84 Right now their is not simple module unpaid without that it can be done. It will better if PrestaSop team allowed some kind of filter array like WordPress which allowed user to filter any value for their need. If can told us details we will short list our future free module list. We are trying to made PrestaShop user life easier. Thank you Link to comment Share on other sites More sharing options...
harry84 Posted July 21, 2021 Share Posted July 21, 2021 I mean someone who has played a bit with the ImageManager.php file which I believe is the one that accepts the upload. Link to comment Share on other sites More sharing options...
caygri Posted June 10, 2022 Share Posted June 10, 2022 any update or suggest module? Link to comment Share on other sites More sharing options...
Seb33300 Posted June 11, 2022 Share Posted June 11, 2022 Hello, I created a module to solve this problem:https://addons.prestashop.com/en/front-office-features-prestashop-modules/88383-upload-any-file-type-in-product-customization.html Hope this can help. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted June 16, 2022 Share Posted June 16, 2022 You can try to use third party modules which helps in achieving the same, I've few suggestions which you can check and go for the same. The below link has some modules which does the same, https://addons.prestashop.com/en/search?search_query=additional product attribute Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now