Welcome Guest, Not a member yet? Register   Sign In
GD library works on one form but not the other
#5

[eluser]xeroblast[/eluser]
i CAREFULLY trace your code and it seems that the problem is in your controller...

you already done the upload that is why it produces the GD function not supported bcoz the image doesnt exist anymore...

you have to do it this way if you want the original, the big resize, and the thumbnail...

first: transfer the $_FILES['image'] to a variable like $original then upload it...
second: again, make another copy of $_FILES['image'] to another variable for the resize like $resize then upload it...
third and last: make another copy of $_FILES['image'] to another variable for the thumbnail like $thumbnail then upload it and you're done...

you can only use the variable once when you do an upload that is why you have to replicate the variable to be use in your upload and resizing...


Messages In This Thread
GD library works on one form but not the other - by El Forum - 03-01-2010, 08:09 PM
GD library works on one form but not the other - by El Forum - 03-02-2010, 12:30 AM
GD library works on one form but not the other - by El Forum - 03-02-2010, 06:58 AM
GD library works on one form but not the other - by El Forum - 03-02-2010, 07:23 AM
GD library works on one form but not the other - by El Forum - 03-03-2010, 01:04 AM
GD library works on one form but not the other - by El Forum - 03-04-2010, 07:29 PM
GD library works on one form but not the other - by El Forum - 03-05-2010, 12:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB