I'm using a Plugin ( link ) to upload files and make it work, I have 2 doubts:
-As I do to validate that there is a selected file for the submission, the submit button to upload the file is generated by the plugin so I do not know how to add the event, I imagine it will be done in the Javascript part where extensions are selected the file that processed etc. but I do not know what the instruction is.
-My other question is how I change the language.
If someone has experience with this plugin, I would greatly appreciate your help.
the code is as follows:
<html lang="es">
<head>
<meta charset="UTF-8"/>
<title>Krajee JQuery Plugins - © Kartik</title>
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet">
<link href="./css/fileinput.css" media="all" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="./js/fileinput.min.js" type="text/javascript"></script>
</head>
<body>
<div class="container">
<h1>Bootstrap File Input Example</h1>
<form enctype="multipart/form-data">
<div class="form-group">
<input id="file-1" type="file" class="file" multiple=true data-preview-file-type="any">
</div>
</form>
</div>
</body>
<script>
$("#file-1").fileinput({
showCaption: false,
browseClass: "btn btn-primary btn-lg",
fileType: "any"
});
</script>