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:
@@ -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
|
||||
|
Reference in New Issue
Block a user