CodeIgniter Forums
file upload - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: file upload (/showthread.php?tid=6740)



file upload - El Forum - 03-10-2008

[eluser]Unknown[/eluser]
i would like to ask a technical question about uploading a file usein php
first i build a form to upload that file lets say image
then in the php code i
{
echo $_files['file']['tmp_name'];
}
the when i run that code i get c:\xampp\temp\php#.tmp

so when i open the tmp file i found nothing expt some cookies i generate
should i see the file i load in that tmp or what ?


file upload - El Forum - 03-10-2008

[eluser]gunter[/eluser]
all uploaded files will be deleted after processing the script... so if they are deleted from the tmp folder it means that everything works ok ;-)
to use them you have to use the php function move_uploaded_file() or the codeigniter file upload library...