Project

General

Profile

Revision b5af2606

Added by Jocelyn Delande over 10 years ago

create upload dir if non-existant

View differences:

uploadReceive.php
9 9
 
10 10
$dest_dir ='upload';
11 11

  
12
if (! is_dir($dest_dir)) {
13
    if (! mkdir($dest_dir)) {
14
        $message = 'Dossier "'.$dest_dir.'" non inscriptible ou inexistant.';
15
    }
16
}
17

  
12 18
if(!empty($_POST) && !empty($_FILES)) {
13 19
  foreach (array_keys($_FILES['files']['name']) as $i) {
14 20
    if(!empty($_FILES['files']['name'][$i])) {

Also available in: Unified diff