scusami ma avrei un altro piccolo problema...
devo caricare sempre lo stesso file con lo stesso nome e mi da un errore e penso che sia qui:
codice:
If(!in_array($ext, $allow_types)) {
$error.= "Invalid extension for your file: ".$_FILES['file']['name'][$i].", only ".$types." are allowed.
Your file(s) were not uploaded.
";
//Check the size of each file
} Elseif($size > $max_bytes) {
$error.= "Your file: ".$_FILES['file']['name'][$i]." is to big. Max file size is ".$max_file_size."kb.
Your file(s) were not uploaded.
";
// Check if the file already exists on the server..
} Elseif(file_exists($folder.$file_name[$i])) {
$error.= "The file: ".$_FILES['file']['name'][$i]." exists on this server, please rename your file.
Your file(s) were not uploaded.
";
}
} // If Files
}
Come si può fare?
grazie ancora!!!