jquery uploadify 上传问题,懂的进来请教下!
code:$(function(){$('#file').uploadify({'uploader':'${ctx}/js/uploadify-v2.1.4/upload...
code:
$(function(){
$('#file').uploadify({
'uploader' : '${ctx}/js/uploadify-v2.1.4/uploadify.swf',
'script' : '${ctx}/admin/admin_user_upload.action',
'cancelImg' : '${ctx}/js/uploadify-v2.1.4/cancel.png',
'folder' : '${ctx}/upload',
'queueID' : 'fileQueue',
'removeCompleted': false,
'buttonText' : 'Upload Image'
});
})
</script>
<div id="fileQueue" class="uploadifyQueueItem"></div>
<input type="file" name="file" id="file" />
<p>
<a href="javascript:$('#file').uploadifyUpload()">上传</a>|
<a href="javascript:$('#file').uploadifyClearQueue()">取消上传</a>
</p>
action:
private List<File> file;
private List<String> fileFileName;
private List<String> fileContentType;
set。。。get。。。
现在问题是,能够跳转到这个action里边来,但是获取不到值:file,
请问问题出在哪里? 展开
$(function(){
$('#file').uploadify({
'uploader' : '${ctx}/js/uploadify-v2.1.4/uploadify.swf',
'script' : '${ctx}/admin/admin_user_upload.action',
'cancelImg' : '${ctx}/js/uploadify-v2.1.4/cancel.png',
'folder' : '${ctx}/upload',
'queueID' : 'fileQueue',
'removeCompleted': false,
'buttonText' : 'Upload Image'
});
})
</script>
<div id="fileQueue" class="uploadifyQueueItem"></div>
<input type="file" name="file" id="file" />
<p>
<a href="javascript:$('#file').uploadifyUpload()">上传</a>|
<a href="javascript:$('#file').uploadifyClearQueue()">取消上传</a>
</p>
action:
private List<File> file;
private List<String> fileFileName;
private List<String> fileContentType;
set。。。get。。。
现在问题是,能够跳转到这个action里边来,但是获取不到值:file,
请问问题出在哪里? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询