Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Every One

I am using Uploadify control for multiple uploads, I implemented the control on localhost, it is working fine, But when i host the website online it is not working
Most of the time it is giving HTTPError
Some time IO Error

Why this happens,


Thanks in Advance
Regards
TanzeelurRehman
Posted
Comments
Herman<T>.Instance 7-Feb-12 3:15am    
does the network service user (user account for IIS) have the rights on the folder to write a file on the server?
TanzeelurRehman 7-Feb-12 3:30am    
Yes, Simple asp.net file control is uploading files correctly to the folder, but uploadify control is not uploading, It is giving HTTP 407 and IO 2038 error

After searching a lot for the solution. I found the code which is underline in the following code. Which gave me the specific errors

HTTP 407 and IO 2038 error

I searched for these error and come to the result that we are using proxy server in the building. Basically all the above errors were due to proxy server. Outside the building it is working every where except proxy servers scenarios


JavaScript
<script type="text/javascript">
       $(document).ready(function () {
            $('#file_upload').uploadify({
                 'uploader': 'uploadify/uploadify.swf',
                 'script': 'uploadify/UploadifyCarImage.ashx',
                 'cancelImg': 'uploadify/cancel.png',
                 'folder': '<%= UploadifyParam %>',
                 'fileExt': '*.jpg;*.gif;*.png;*.bmp;*.jpeg',
                 'fileDesc': 'Image Files',
                 'queueSizeLimit':'5',
                 'multi': true,
                 'auto': true,
                 'removeCompleted': true,
                 'onError': function (event, ID, fileObj, errorObj) {
                      alert(errorObj.type + ' Error: ' + errorObj.info);
                 }

            });
       });</script>
 
Share this answer
 
Try using a regular aspx page instead of ashx
XML
<script type="text/javascript">
       $(document).ready(function () {
            $('#file_upload').uploadify({
                 'uploader': 'uploadify/uploadify.swf',
                 'script': 'uploadify/UploadifyCarImage.aspx',
                 'cancelImg': 'uploadify/cancel.png',
                 'folder': '<%= UploadifyParam %>',
                 'fileExt': '*.jpg;*.gif;*.png;*.bmp;*.jpeg',
                 'fileDesc': 'Image Files',
                 'queueSizeLimit':'5',
                 'multi': true,
                 'auto': true,
                 'removeCompleted': true,
                 'onError': function (event, ID, fileObj, errorObj) {
                      alert(errorObj.type + ' Error: ' + errorObj.info);
                 }

            });
       });</script>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900