Posted by angelduran2004 on 12/27/06 22:49
hi i have this code
foreach ($_FILES["images"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
$tmp_name = $_FILES["images"]["tmp_name"][$key];
$name = $_FILES["images"]["name"][$key];
move_uploaded_file($tmp_name, "images/$name");
}
}
and i wish to add it a uniqid to every file uploaded leaving intact
it's original name as well. and i would also need to get the file name
and add it to my database. just wondering how to do that if any one can
help.
Navigation:
[Reply to this message]
|