Error in file upload

Last post 05-19-2010, 3:10 AM by FriendyAnil. 3 replies.
Sort Posts: Previous Next
  •  04-05-2010, 6:23 AM 59867

    Error in file upload

    Hi,
     
    We are using this product from last 6 months or so. we have updated our license recently and we updated the latest files also. From then we are getting problems with uploaded files. Some times we found that files are uploading with very small sizes (corrupted files). And we are unable to access those uploaded files. they are corrupted.
     
    When we click upload button after selecting files we are able to find one aborted request. we think its is initializing from uploader.js file. We checked in Firefox browser Firebug tool NET tab. 
     
    This error even exist in your demo page
    i.e., 
    http://phpfileuploader.com/demo/demo2.php
     
    Please find screen shot of your demo page below . We are waiting for your feedback. This is very very urgent for us.
    Regards,
    Suneel
     
     

  •  04-05-2010, 10:36 AM 59873 in reply to 59867

    Re: Error in file upload

    Suneel,

    We are investigating this issue and will get back to you as soon as possible.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-05-2010, 11:31 PM 59887 in reply to 59867

    Re: Error in file upload

    Hi,
     
    That is a request for the gif file and redirect to the continuous.gif .
     
    I don't know why it's aborted, and we also can't reproduce it.
     
    Please check the parameger , tye querystring should be ?type=file&file=continuous.gif
     
    Since the continuous.gif is OK , I think that error is not a problem.
     
    Regards,
    Terry
  •  05-19-2010, 3:10 AM 61135 in reply to 59867

    Re: Error in file upload

    try this:

    <?php
    if ((($_FILES["file"]["type"] == "image/gif")
    || ($_FILES["file"]["type"] == "image/jpeg")
    || ($_FILES["file"]["type"] == "image/pjpeg"))
    && ($_FILES["file"]["size"] < 20000))
    {
    if ($_FILES["file"]["error"] > 0)
    {
    echo "Error: " . $_FILES["file"]["error"] . "
    ";
    }
    else
    {
    echo "Upload: " . $_FILES["file"]["name"] . "
    ";
    echo "Type: " . $_FILES["file"]["type"] . "
    ";
    echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb
    ";
    echo "Stored in: " . $_FILES["file"]["tmp_name"];
    }
    }
    else
    {
    echo "Invalid file";
    }
    ?>

    you can read more about this by following my source link for W3schools

    Source(s):

    http://www.w3schools.com/PHP/php_file_upload.asp
View as RSS news feed in XML