JS gevorderde |
|
yup, in de regel
if (!move_uploaded_file($_FILES['upload']['tmp_name'], $upload_dir . $_FILES['upload']['name']))
if (!move_uploaded_file($_FILES['upload']['tmp_name'], $upload_dir . $_FILES['upload']['name']))
staat de nieuwe bestandsnaam(http://nl2.php.net/manual/nl/function.move-uploaded-file.php)
je kan er bijvoorbeeld van maken :
if (!move_uploaded_file($_FILES['upload']['tmp_name'], $upload_dir . $gebruiker['naam']."_".$_FILES['upload']['name']))
if (!move_uploaded_file($_FILES['upload']['tmp_name'], $upload_dir . $gebruiker['naam']."_".$_FILES['upload']['name']))
|