Skip to content

Commit

Permalink
Examples: Avoid PHP notice in upload.php.
Browse files Browse the repository at this point in the history
  • Loading branch information
jayarjo committed Mar 20, 2013
1 parent 1fe3e90 commit b64e047
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
@mkdir($targetDir);
}

$fileName = isset($_REQUEST["name"]) ? $_REQUEST["name"] : '';
$fileName = isset($_REQUEST["name"]) ? $_REQUEST["name"] : uniqid("file_");
$filePath = $targetDir . DIRECTORY_SEPARATOR . $fileName;

$chunking = is_numeric($_REQUEST["offset"]) && is_numeric($_REQUEST["total"]);
$chunking = isset($_REQUEST["offset"]) && isset($_REQUEST["total"]);


// Remove old temp files
Expand Down

0 comments on commit b64e047

Please sign in to comment.