Révision b5af2606
Ajouté par Jocelyn Delande il y a environ 11 ans
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])) { |
Formats disponibles : Unified diff
create upload dir if non-existant