// example.php
<?
if( isset($f) )
{
   if($f!="" && file_exist($f) )
   {
      echo "upload file successed.<br>\n";
      echo "FileName:$f_name<br>\n";
      echo "FileSize:$f_size<br>\n";
      echo "FileType:$f_type<br>\n";
      echo "File    :$f<br>\n";     //then,you will do this:
     link($f,$somewhere);   }}
<form encType=multipart/form-data method=post>
<input type=file name=f>
<input type=submti>
</form>