Image Uploading without temporary variable
Posted: Sat Aug 27, 2011 2:20 am
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.
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.