Click here to Skip to main content
14,489,280 members
Rate this:
Please Sign up or sign in to vote.
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
digimanus 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
Rate this:
Please Sign up or sign in to vote.

Solution 1

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


<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>
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Try using a regular aspx page instead of ashx
<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>
   

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

  Print Answers RSS
Top Experts
Last 24hrsThis month



CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100