Hello,
I'm using the file_upload element to upload images via a form. After form submission I want to generate thumbnails for the uploaded image. I tried to run a php plugin on after form process, I call a function that generates those thumbnails with the below syntax:
functionName({element_name});
I am sure that the function works properly because if I write directly the path of an image as a function parameter ( eg. functionName('path/to/image') ) then it successfully generates the thumbnails for all the sizes that I want. However If i use the: {element_name} so that this functionality runs for each image that is being uploaded then it returns a notice that the index is undefined.
What am I doing wrong?
I'm using the file_upload element to upload images via a form. After form submission I want to generate thumbnails for the uploaded image. I tried to run a php plugin on after form process, I call a function that generates those thumbnails with the below syntax:
functionName({element_name});
I am sure that the function works properly because if I write directly the path of an image as a function parameter ( eg. functionName('path/to/image') ) then it successfully generates the thumbnails for all the sizes that I want. However If i use the: {element_name} so that this functionality runs for each image that is being uploaded then it returns a notice that the index is undefined.
What am I doing wrong?