jquery ajaxfileupload 上传控件 Uncaught SyntaxError: Unexpected token < 问题

使用ajaxfileupload上传控件时遇到Uncaught SyntaxError: Unexpected token <的问题,通过将json改为jsonp成功解决。但对于大文件上传,出现其他问题,如ClassNotFound错误。解决方法是修改struts2-core核心包中default.properties的上传大小限制。
摘要由CSDN通过智能技术生成

ajaxfileupload 上传控件简单好用,网上很多相关信息,直接在官网上下载

<script type="text/javascript" src="AjaxFileUploader/jquery.js"></script>
<script type="text/javascript" src="AjaxFileUploader/ajaxfileupload.js"></script>
	
	<script type="text/javascript">
		 function ajaxFileUpload()
    	{
        //starting setting some animation when the ajax starts and completes
	        $("#loading")
	        .ajaxStart(function(){
	            $(this).show();
	        })
	        .ajaxComplete(function(){
	            $(this).hide();
	        });
        
        /*
            prepareing ajax file upload
            url: the url of script file handling the uploaded files
            fileElementId: the file type of input element id and it will be the index of  $_FILES Array()
            dataType: it support json, xml
            secureuri:use secure pro
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值