1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 08:06:59 +02:00

Warn about exceeded max_file_uploads in import

This commit is contained in:
Jakub Vrana
2025-06-04 14:04:24 +02:00
parent 04068a631e
commit 146d3539d8
5 changed files with 18 additions and 1 deletions

View File

@@ -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