this is my existing uploader
if ($action == "addproduct") {
// IMAGE UPLOADER
$uploaddir = DIR_FS_CATALOG . DIR_WS_IMAGES;
if (($file == "none")||($file=="")) {
$file_name = "";
}
else {
copy($file, $uploaddir.$file_name);
unlink($file);
}
html
form
<td><input type="file" size=40 name="file"></td><br>
/form
/html
you get the idea