Skip to content

Commit d9bbda4

Browse files
committed
Show small note in export stating about invalid export files when using compression
1 parent c097b1d commit d9bbda4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

resources/templates/export.twig

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,10 @@
422422
<li class="list-group-item">
423423
<div class="row">
424424
<div class="col-auto">
425-
<label for="compression" class="col-form-label">{{ t('Compression:') }}</label>
425+
<label for="compression" class="col-form-label">
426+
{{ t('Compression:') }}
427+
{{ show_hint('Compressing big tables requires PHP memory. Be aware that this might produce invalid files %s'|format(get_formatted_maximum_upload_size(max_upload_size))) }}
428+
</label>
426429
</div>
427430
<div class="col-auto">
428431
<select class="form-select" id="compression" name="compression">

src/Controllers/Database/ExportController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use PhpMyAdmin\ResponseRenderer;
2020
use PhpMyAdmin\Url;
2121
use PhpMyAdmin\UrlParams;
22+
use PhpMyAdmin\Util;
2223

2324
use function __;
2425
use function array_merge;
@@ -145,6 +146,7 @@ public function __invoke(ServerRequest $request): Response
145146
);
146147

147148
$this->response->render('database/export/index', array_merge($options, [
149+
'max_upload_size' => Util::getUploadSizeInBytes(),
148150
'page_settings_error_html' => $pageSettingsErrorHtml,
149151
'page_settings_html' => $pageSettingsHtml,
150152
'structure_or_data_forced' => $request->getParsedBodyParam('structure_or_data_forced', 0),

0 commit comments

Comments
 (0)