Skip to content
Snippets Groups Projects
Commit 06eceeb0 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Refs #10778: Fix problem closing ZIP too early.

parent bcab1375
No related branches found
No related tags found
3 merge requests!286Master,!271Develop,!270F10778 upload zip and unpack
Pipeline #3542 passed
......@@ -672,11 +672,6 @@ class Save {
}
}
// Close Zip
if (false === $zip->close()) {
throw new \UserFormException("Failed to close ZIP.", ERROR_IO_ZIP_OPEN);
}
// Process
if (!isset($formElement[FE_SLAVE_ID])) {
$formElement[FE_SLAVE_ID] = '';
......@@ -694,9 +689,13 @@ class Save {
$this->evaluate->parse($formElement[FE_SQL_BEFORE]);
$this->doUploadSlave($formElement, UPLOAD_MODE_NEW);
$this->evaluate->parse($formElement[FE_SQL_AFTER]);
print_r(basename($stat['name']) . PHP_EOL);
}
}
// Close Zip
if (false === $zip->close()) {
throw new \UserFormException("Failed to close ZIP.", ERROR_IO_ZIP_OPEN);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment