diff --git a/CHANGELOG.md b/CHANGELOG.md index 83cf4869..bc4543a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## Adminer dev - Allow specifying operator in search anywhere +- Warn about exceeded max_file_uploads in import - MySQL 5.0-: Do not load partitioning info in alter table (bug #1099) - PostgreSQL: Show structure of inherited tables - PostgreSQL: Hide only partitions, not all inherited tables from menu diff --git a/adminer/lang/cs.inc.php b/adminer/lang/cs.inc.php index 5551ab93..6c12c37d 100644 --- a/adminer/lang/cs.inc.php +++ b/adminer/lang/cs.inc.php @@ -76,6 +76,7 @@ Lang::$translations = array( 'Webserver file %s' => 'Soubor %s na webovém serveru', 'Run file' => 'Spustit soubor', 'File does not exist.' => 'Soubor neexistuje.', + 'Increase %s.' => 'Zvyšte %s.', 'File uploads are disabled.' => 'Nahrávání souborů není povoleno.', 'Unable to upload a file.' => 'Nepodařilo se nahrát soubor.', 'Maximum allowed file size is %sB.' => 'Maximální povolená velikost souboru je %sB.', diff --git a/adminer/lang/xx.inc.php b/adminer/lang/xx.inc.php index e3e95722..a0e2099d 100644 --- a/adminer/lang/xx.inc.php +++ b/adminer/lang/xx.inc.php @@ -77,6 +77,7 @@ Lang::$translations = array( 'Webserver file %s' => 'Xx %s', 'Run file' => 'Xx', 'File does not exist.' => 'Xx.', + 'Increase %s.' => 'Xx %s.', 'File uploads are disabled.' => 'Xx.', 'Unable to upload a file.' => 'Xx.', 'Maximum allowed file size is %sB.' => 'Xx %sB.', diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index ce349663..c2908c53 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -250,8 +250,11 @@ if (!isset($_GET["import"])) { } else { echo "
\n"; diff --git a/adminer/static/editing.js b/adminer/static/editing.js index 67a8a549..ac76a8d6 100644 --- a/adminer/static/editing.js +++ b/adminer/static/editing.js @@ -665,6 +665,17 @@ function sqlSubmit(form, root) { } } +/** Check if PHP can handle the uploaded files +* @param number +* @param string +* @param Event +*/ +function fileChange(event, maxFileUploads, message) { + if (event.target.files.length > maxFileUploads) { + alert(message); + } +} + /** Handle changing trigger time or event