Image Uploading without temporary variable

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
ashrafy84
Forum Newbie
Posts: 9
Joined: Tue Dec 23, 2008 4:29 am

Image Uploading without temporary variable

Post by ashrafy84 »

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.
User avatar
getmizanur
Forum Commoner
Posts: 71
Joined: Sun Sep 06, 2009 12:28 pm

Re: Image Uploading without temporary variable

Post by getmizanur »

look into is_uploaded_file() function in php manual
Post Reply