Multiple thumbnails just isn't happening. |
[eluser]JasonS[/eluser]
For some reason I cannot convert more than one thumbnail. Code: if ($this->upload->do_upload('picture1')) The second picture2 doesn't resize the image and doesn't display any errors. A picture is being uploaded. Any ideas what is happening here?
[eluser]designfellow[/eluser]
Hi, change upload field names as array and use foreach loop to generate thumbnails.
[eluser]JasonS[/eluser]
Can you clarify this please. The filenames are in the db array. How would I use a foreach to loop through these thumbnails? I do not see how this would be much different to what I am doing now. If the 'if' statements are not working then why would a foreach loop?
[eluser]pistolPete[/eluser]
You load the image library twice and you omitted calling resize() for the second image; try this instead: User guide: Quote:The clear function resets all of the values used when processing an image. You will want to call this if you are processing images in a loop. Code: if ($this->upload->do_upload('picture1')) |
Welcome Guest, Not a member yet? Register Sign In |