我最近在使用带有Java(struts)的uploadify 2.1.0时,当我在localhost服务器上运行项目时,一切看起来都很完美但是当它上传到服务器上时(Windows Server 2008),浏览按钮会转到"未定义"文本显示。我试图在服务器上安装更新的Adobe Flash Player(第14版),但没有任何改变。 这是初始化脚本:
<link href="uploadify/uploadify.css" rel="stylesheet">
<script src="uploadify/jquery-1.3.2.min.js"></script>
<script src="uploadify/swfobject.js"></script>
<script src="uploadify/jquery.uploadify.v2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#uploadify').uploadify({
'uploader': 'uploadify/uploadify.swf',
'script': 'upload.do',
'cancelImg': 'uploadify/cancel.png',
'onComplete': function(event, queueID, fileObj, response, data) {
$("#fileId").val(response);
return false;
}
});
$('#upload').click(function() {
$('#uploadify').uploadifyUpload();
return false;
});
});
</script>
及其用法:`
<input id="uploadify" type="file">
<a id="upload" href="#">Upload</a>