I want to upload multiple files with a form.
So at the post I have this code that does not work.Why?
Code:
if (count($_FILES['presoFile']) > 0) {
        FOREACH ($_FILES['presoFile'] as $name) {
              if ($name['error'] == 0) {
 $uploadtrumpdir = './files/images/imgs/';
  $uploadtrumpfilename = rand(100000000, 199999999) . "_" . basename($name['presoFile']['name']);
 move_uploaded_file( $name["tmp_name"], $uploadtrumpfile);
..............................
}
}
}