Check file type when upload - if JPEG do image process if PDF extension do not do the image processing
Upload a file to the server. I allow .pdf,.PDF.jpg,.png,.jpeg,.JPG,.PNG,.JPEG
When its an image … it must LOAD the and crop them as its doing… so that is sorted and working.
But i want to add a condition that if the file extension is PDF it must void the image processing.
Anybody that might have an idea… or add a condition to check the POST … eg… the file extension maybe
You could try using the ends with formatter on either the file name or type, also I see your using the upload TYPE as .pdf is this what it actually returns never tried a pdf but images return like image/png etc