Overview
Comment: | Make sure restore file upload didn't fail |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
721ac807f68082e0cc7e209efddd96c2 |
User & Date: | bohwaz on 2023-06-05 00:12:42 |
Other Links: | manifest | tags |
Context
2023-06-08
| ||
00:23 | Specifiy table caption for volunteer contributions, to fix XLSX export bug check-in: 069cef7efd user: bohwaz tags: trunk, stable | |
2023-06-05
| ||
00:12 | Make sure restore file upload didn't fail check-in: 721ac807f6 user: bohwaz tags: trunk, stable | |
2023-05-30
| ||
13:55 | Remove qv() function check-in: cfd9c07c31 user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/admin/config/backup/documents.php from [a7f4d2c329] to [a4ae0f7afb].
1 2 3 4 5 6 7 8 9 10 11 12 | <?php namespace Garradin; use Garradin\Web\Web; use Garradin\Files\Files; use Garradin\Entities\Files\File; require_once __DIR__ . '/../_inc.php'; $form->runIf('restore', function () { try { // Decompress (inflate) raw data | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | <?php namespace Garradin; use Garradin\Web\Web; use Garradin\Files\Files; use Garradin\Entities\Files\File; require_once __DIR__ . '/../_inc.php'; $form->runIf('restore', function () { try { // Decompress (inflate) raw data if (empty($_FILES['file1']['error']) && !empty($_FILES['file1']['tmp_name']) && f('compressed')) { $f = $_FILES['file1']['tmp_name']; file_put_contents($f, gzinflate(file_get_contents($f), 1024*1024*1024)); } File::upload(Utils::dirname(f('target')), 'file1'); } catch (UserException $e) { |
︙ | ︙ |