Assuming you are using PHP, the information you need can be found in the $_FILES array created during the upload process. For example:
$_FILES['userfile']['name'] -- original filename
$_FILES['userfile']['tmp_name'] -- path and filename of temporary file
$_FILES['userfile']['size'] -- size of file (in bytes)
$_FILES['userfile']['type'] -- MIME type of fileTo move it from the temporary location to a new location, create a variable that holds the new path and filename (I’ve used $filename), and use the following:
move_uploaded_file($_FILES['userfile']['tmp_name'], $filename);The file will now be in the new location and renamed, according to whatever you chose for the $filename variable.
Keystone Websites | si-blog