Uploadify错误#2038
每当我用这个脚本进行测试时,它都会在上传尝试中不断失败,并给出错误IO#2038
我可以肯定地说,它甚至从来没有得到'Upload.ashx'的后端脚本,这告诉我这是一个问题,是脚本的问题。 现在我在我的测试机器上使用localhost进行此操作。
http://www.uploadify.com
<head>
<title></title>
<script src="Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="Uploadify/jquery.uploadify.v2.1.4.min.js" type="text/javascript"></script>
<script src="Uploadify/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#file_upload').uploadify({
'uploader': '/uploadify/uploadify.swf',
'script': 'Upload.ashx',
'multi': false,
'sizeLimit': 10000000,
'scriptAccess': 'sameDomain',
'cancelImg': '/uploadify/cancel.png',
'onAllComplete': function (event, data) {
alert(data.filesUploaded + ' files uploaded successfully!');
},
'onCancel': function (event, ID, fileObj, data) {
alert('The upload of ' + fileObj.name + ' has been canceled!');
},
'onError': function (event, ID, fileObj, errorObj) {
alert(errorObj.type + ' Error: ' + errorObj.info);
},
'onSelectOnce': function (event, data) {
alert(data.filesSelected + ' files were selected for upload.');
},
'auto': false
});
});
</script>
</head>
<body>
<span>
<label for="file_upload" title="Photo">
Photo</label>
<input id="file_upload" name="file_upload" type="file" />
<a href="javascript:$('#file_upload').uploadifyUpload();">Upload Files</a>
</span>
</body>
你使用SSL吗? 这可能是您的证书有问题。 检查您的证书是否对该域有效。
http://www.uploadify.com/forums/discussion/6650
链接地址: http://www.djcxy.com/p/46473.html