上传错误#2038

时间:2011-11-30 19:54:42

标签: jquery uploadify

每当我使用此脚本进行测试时,它会在上传尝试时不断失败并出现错误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>

1 个答案:

答案 0 :(得分:4)

您使用的是SSL吗?这可能是您的证书有问题。检查您的证书是否对域有效。

http://www.uploadify.com/forums/discussion/6650