Upload dropped folders file by file
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user