first commit
This commit is contained in:
8
upload_chunk.php
Normal file
8
upload_chunk.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
$filename = basename($_POST['filename']);
|
||||
$index = intval($_POST['index']);
|
||||
$tmpDir = __DIR__ . '/upload_chunks/' . $filename;
|
||||
if (!file_exists($tmpDir)) mkdir($tmpDir, 0777, true);
|
||||
|
||||
move_uploaded_file($_FILES['chunk']['tmp_name'], "$tmpDir/$index.part");
|
||||
Reference in New Issue
Block a user