first commit

This commit is contained in:
2025-05-02 01:32:22 +03:00
commit 0311b21d23
5 changed files with 195 additions and 0 deletions

8
upload_chunk.php Normal file
View 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");