prevent the id is not used (#8)
This commit is contained in:
parent
c0d66f4b25
commit
e7d3921bc0
@ -37,7 +37,11 @@
|
|||||||
// Upload File
|
// Upload File
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'PUT')
|
if ($_SERVER['REQUEST_METHOD'] === 'PUT')
|
||||||
{
|
{
|
||||||
$rnd_data = mt_rand(10000,99999);
|
do
|
||||||
|
{
|
||||||
|
$rnd_data = mt_rand(00000,99999);
|
||||||
|
} while (file_exists(_DATA_DIR . "/" . $rnd_data));
|
||||||
|
|
||||||
$filesize = 0 ;
|
$filesize = 0 ;
|
||||||
|
|
||||||
mkdir(_DATA_DIR . "/" . $rnd_data);
|
mkdir(_DATA_DIR . "/" . $rnd_data);
|
||||||
|
Loading…
Reference in New Issue
Block a user