2
每當我使用這個腳本進行測試時,它在上傳嘗試中連續失敗,並給出了錯誤IO#2038
我可以肯定地說,它甚至從來沒有得到'上傳的後端腳本.ashx' 哪個告訴我這是一個問題,不知怎的,腳本。現在我在我的測試機器上使用localhost進行此操作。Uploadify錯誤#2038
<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>