Projet

Général

Profil

« Précédent | Suivant » 

Révision b5af2606

IDb5af2606cd82316233c07ec3fe04db80a622e6cc
Parent 73fd5477
Enfant 4315dfc1

Ajouté par Jocelyn Delande il y a plus de 10 ans

create upload dir if non-existant

Fichiers

  • ajouté
  • modifié
  • copié
  • renommé
  • supprimé

Voir les différences

Révisions

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])) {