demo2 (File Upload with Custom handler) freezes in FF

Last post 04-04-2011, 3:10 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  04-02-2011, 7:12 PM 66966

    demo2 (File Upload with Custom handler) freezes in FF

    Hi,
    I am running thrugh the samples on my site (hosted). Everything works, except demo2.php which freezes in FF 3.6.16.
     
    Here's the screenshot:
     
    It works in IE.
    I tried the same(?) demo at http://phpfileuploader.com/demo/demo2.php and there it works fine in FF.
     
    What to do?
     
    Cheers.
     
    P.S The screenshot above looks great in the rich text editor when editing this post. But in the forum list it does not. I think you have a problem there as well.
  •  04-04-2011, 3:10 AM 66977 in reply to 66966

    Re: demo2 (File Upload with Custom handler) freezes in FF

    Hi MrFast,
     
    Please wrap the uploader control by the <div> target
     
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php session_start(); ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Demo 2 - use UploadUrl property</title>
    </head>
    <body>
    <div>
        <?php
            $uploader=new PhpUploader();

            $uploader->MultipleFilesUpload=true;
            $uploader->InsertText="Select multiple files (Max 10M)";
            
            $uploader->MaxSizeKB=10240;
            $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp";
            
            $uploader->UploadUrl="demo2_upload.php";
            
            $uploader->Render();
        ?>
        
        <script type='text/javascript'>
        function CuteWebUI_AjaxUploader_OnTaskComplete(task)
        {
            var div=document.createElement("DIV");
            var link=document.createElement("A");
            link.setAttribute("href","savefiles/myprefix_"+task.FileName);
            link.innerHTML="You have uploaded file : savefiles/myprefix_"+task.FileName;
            link.target="_blank";
            div.appendChild(link);
            document.body.appendChild(div);
        }
        </script>
        </div>
    </body>
        
    </html>
     
    Regards,
     
    ken
View as RSS news feed in XML