- Step1: Move ALL parameters in a new params.json file.
For example:
Code: Select all
paramsData = {
/* Regular parameters */
url : "http://localhost:8080/upload/process.jsp",
...
username : "test",
password : atob("dGVzdA=="),
...
}
Code: Select all
<script type="text/javascript" src="js/fileupload.min.js"></script>
<script type="text/javascript" src="params.json"></script>
Code: Select all
// Setup some parameters
var params = paramsData;
// Create your instance of JFileUpload.