IMAGE UPLOAD HELP - I already read the Tutorinal
Posted: Thu Jun 08, 2006 2:57 pm
Hi,
I'm working on a website where I need to upload digital camera pictures. I've been trying to follow the Tutorial for uploading and creating a thumbnail.
When I upload a test image of something small (7.14 KB), it works no problem.
When I uplaod a real image (2,116KB), I keep getting the following errors:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Warning: unlink(): No such file or directory in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 105
Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 107
Warning: imagesx(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 117
Warning: imagesy(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 117
Warning: imagesx(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 131
Warning: imagesy(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 132
Warning: imagecreatetruecolor(): Invalid image dimensions in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 134
Warning: imagesx(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 135
Warning: imagesy(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 135
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 135
Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 136
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
From what I can tell, they seem to deal with the $_FILES['image']['tmp_name'] variable.
So I ran a print out of if and $_FILES['image']['tmp_name'] is empty / blank.
Like I said, when I use the smaller image, it prints out the name of the tmp file no problem. Any ideas how to get this working?
Thanks!
I'm working on a website where I need to upload digital camera pictures. I've been trying to follow the Tutorial for uploading and creating a thumbnail.
When I upload a test image of something small (7.14 KB), it works no problem.
When I uplaod a real image (2,116KB), I keep getting the following errors:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Warning: unlink(): No such file or directory in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 105
Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 107
Warning: imagesx(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 117
Warning: imagesy(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 117
Warning: imagesx(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 131
Warning: imagesy(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 132
Warning: imagecreatetruecolor(): Invalid image dimensions in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 134
Warning: imagesx(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 135
Warning: imagesy(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 135
Warning: imagecopyresampled(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 135
Warning: imagejpeg(): supplied argument is not a valid Image resource in /home/.ginko/jaccrock/jcstrategies.com/jeff/admin/featured_listings.php on line 136
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
From what I can tell, they seem to deal with the $_FILES['image']['tmp_name'] variable.
So I ran a print out of if and $_FILES['image']['tmp_name'] is empty / blank.
Like I said, when I use the smaller image, it prints out the name of the tmp file no problem. Any ideas how to get this working?
Thanks!