Project

General

Profile

« Previous | Next » 

Revision b5af2606

IDb5af2606cd82316233c07ec3fe04db80a622e6cc
Parent 73fd5477
Child 4315dfc1

Added by Jocelyn Delande over 11 years ago

create upload dir if non-existant

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences

Changesets

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