Upload dropped folders file by file

This commit is contained in:
Mikei386
2026-06-23 21:42:01 +02:00
parent dfd6bfec57
commit 9d5903dcf6
6 changed files with 15 additions and 13 deletions
@@ -11,7 +11,7 @@ $uploaded = [];
$names = unav_upload_array($_FILES['files']['name'] ?? []);
$errors = unav_upload_array($_FILES['files']['error'] ?? []);
$tmpNames = unav_upload_array($_FILES['files']['tmp_name'] ?? []);
$relativePaths = unav_upload_array($_POST['paths'] ?? []);
$relativePaths = unav_upload_array($_POST['paths'] ?? ($_POST['relativePath'] ?? []));
foreach ($names as $index => $name) {
if (($errors[$index] ?? UPLOAD_ERR_NO_FILE) !== UPLOAD_ERR_OK) {
unav_error(400, 'Upload failed');