Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamed amine authored and mohamed amine committed Sep 8, 2017
2 parents 8f836f3 + e106809 commit c6898bb
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions testing.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

if (empty($file->Errors)) {
var_dump($data);
/*
$data['name'] -> uploaded file name
$data['dir'] -> uploaded file directory in server
*/
/*
$data['name'] -> uploaded file name
$data['dir'] -> uploaded file directory in server
*/
} else {
var_dump($file->Errors);
}
Expand All @@ -40,16 +40,16 @@
$data = $files->Upload($_SERVER['DOCUMENT_ROOT']);

if (in_array(false, $data)) { // if there is some error
$Errors = $files->getErrors();
$Errors = $files->getErrors();
var_dump($Errors);
} else { // if every thing went right
var_dump($data);
/*
$data[0]['name'] -> first uploaded file name
$data[1]['name'] -> second uploaded file name
$data[0]['dir'] -> first uploaded file directory in server
$data[1]['dir'] -> second uploaded file directory in server
*/
var_dump($data);
/*
$data[0]['name'] -> first uploaded file name
$data[1]['name'] -> second uploaded file name
$data[0]['dir'] -> first uploaded file directory in server
$data[1]['dir'] -> second uploaded file directory in server
*/
}
}
?>
Expand Down

0 comments on commit c6898bb

Please sign in to comment.