Uploadify error #2038

不羁岁月 提交于 2019-12-19 04:24:19

问题


Whenever I do a test with this script it continually fails at the upload attempt and gives the error IO #2038
The thing I can say for sure is it never even gets to the backend script of 'Upload.ashx' Which that tells me it is a problem is with the script somehow. Now I am doing this with localhost on my test machine.

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:


Are you using SSL? It could be a problem with your certificates. Check if your certificate is valid for the domain.

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



来源:https://stackoverflow.com/questions/8332098/uploadify-error-2038

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!