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