Hi All,
Would really appreciate some help.. Our website visitors upload photos to our site and I would the files to be renamed to avoid files being over written.
Upload.PHP script is as follows :-
<?php
if($_SERVER['REQUEST_METHOD'] == "POST"){
if(move_uploaded_file($_FILES['file']['tmp_name'], "uploads/".$_FILES['file']['name'])){
echo($_POST['index']);
}
exit;
}
?>
Please can you advise what I need to change to ensure all files are renamed during / after the upload? We would like the file names to be a number 1 to 99 for example.
Thanks in advance!
Will