• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
file upload

#1
[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 ?

#2
[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...


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.