Hi friends,
I have a small issues while uploading the image into a server using php. Normally the image is uploading with a data of
Array
(
[album] => 1
[name] => Niko 6 months 3.jpg
[type] => image/jpeg
[tmp_name] => C:\wamp\tmp\php36.tmp
[error] => 0
[size] => 1604735
)
But in some cases the image type and tmp_name is empty. in this time the image is not get uploaded into the server.
Please give solutions to my questions
1) The image should be uploaded with any errors
2) The image should be upload if the tmp_name is empty
Please give the solutions for the above questions.. I need it as soon as possible.
Image Uploading without temporary variable
Moderator: General Moderators
- getmizanur
- Forum Commoner
- Posts: 71
- Joined: Sun Sep 06, 2009 12:28 pm
Re: Image Uploading without temporary variable
look into is_uploaded_file() function in php manual