<%@ tag pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<script type="text/javascript" src="${ctx}/resources/customize/js/ajaxfileupload.js"></script>
<link rel="stylesheet" type="text/css" href="${ctx}/resources/customize/css/diyUpload/css/webuploader.css">
<link rel="stylesheet" type="text/css" href="${ctx}/resources/customize/css/diyUpload/css/diyUpload.css">
<script type="text/javascript" src="${ctx}/resources/customize/js/diyUpload/js/webuploader.html5only.min.js"></script>
<script type="text/javascript" src="${ctx}/resources/customize/js/diyUpload/js/diyUpload.js"></script>

<script type="text/javascript">

/*
* 服务器地址,成功返回,失败返回参数格式依照jquery.ajax习惯;
* 其他参数同WebUploader
*/

$('#webupload').diyUpload({
	url:"${ctx}/attachment/upload/web",
	success:function( data ) {
		console.info( data );
	},
	error:function( err ) {
		console.info( err );	
	}
});

 $('#wapupload').diyUpload({
	url:'${ctx}/attachment/upload/wap',
	success:function( data ) {
		console.info( data );
	},
	error:function( err ) {
		console.info( err );	
	}
}); 
</script>