Additional Check for the file
This commit is contained in:
parent
3dca6efcdc
commit
2e486f6d33
|
@ -1,6 +1,9 @@
|
|||
jQuery(document).ready(function($) {
|
||||
$('#backupFile').change(function() {
|
||||
var file = this.files.length >= 1? this.files[0]: null;
|
||||
if (file === null) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Build Form Data
|
||||
var url = $('#jsform').attr("action") || window.location.href;
|
||||
|
|
Loading…
Reference in New Issue