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

[eluser]geekindisguise[/eluser]
[quote author="xeroblast" date="1267621459"]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...[/quote]

Are you sure? Because the script for uploading works PERFECTLY elsewhere. But not in this. It is the same script too. And how do I make copies of the $_FILES['image']?
Like this:?
Code:
$original = $_FILES['image'];
$resize = $_FILES['image'];
$thumb = $_FILES['image'];

Yes, I am a newbie at all this. So don't make fun of me if what I said above made NO sense or was completely ridiculous.


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