2 /*******************************************************************************
3 * Copyright (c) 2012-2013 University of Stuttgart.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * and the Apache License 2.0 which both accompany this distribution,
7 * and are available at http://www.eclipse.org/legal/epl-v10.html
8 * and http://www.apache.org/licenses/LICENSE-2.0
11 * Oliver Kopp - initial API and implementation and/or initial documentation
12 *******************************************************************************/
14 <%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
16 <%@taglib prefix="t" tagdir="/WEB-INF/tags" %>
18 <t:genericpage windowtitle="Test" selected="Admin" cssClass="admin">
20 <input id="fileupload" type="file" name="files[]" multiple
21 data-url="/path/to/upload/handler.json"
22 data-sequential-uploads="true"
23 data-form-data='{"script": "true"}'>
26 var fu = $("#fileupload");
27 requirejs(["jquery.fileupload"], function() {
28 fu.fileupload({autoUpload:true});