Topic: uploading stops in chrome 7

Hello,

i am using flash upload and in FF and IE works ok. In Chrome upload stops after certain %(somwhere after 95%).

What can be wrong?

Re: uploading stops in chrome 7

Now i tried with version 6, same problem.

Weird:
Sometimes upload is ok...

Last edited by pubi (2010-10-18 11:35:18)

Re: uploading stops in chrome 7

Does anybody have similar problems, or mistake is in my code? i just don't wan't to change my code, if this is Chrome bug.

this is my conf code:

    <script type="text/javascript" src="../../../javascript/jquery/jquery-1.3.2.min.js.php"></script>
    <script type="text/javascript" src="../../javascript/plupload/src/javascript/plupload.js"></script>
    <script type="text/javascript" src="../../javascript/plupload/src/javascript/plupload.flash.js"></script>

    <script type="text/javascript">
    // Custom example logic
    /* <![CDATA[ */
    $(function() {
        var uploader = new plupload.Uploader({
            runtimes : 'flash,silverlight,gears',
            browse_button : 'pickfiles',
            max_file_size : '10mb',
            url : 'imagehandling.php?possibleatackHash=fciasf7as8fu7csdf<?=$_SESSION['session']?>s6a86fsdgfsag',
            flash_swf_url : '../../javascript/plupload/js/plupload.flash.swf',
            silverlight_xap_url : '',
            multipart: true,
            multipart_params : {cat_id: $('#cat_id_multiple').val()},
            filters : [
                {title : "Image files", extensions : "png,bmp,tif,jpg,gif,jpeg"}
            ]
        });
/*
        uploader.bind('Init', function(up, params) {
            $('#filelist').html('<div>Current runtime: ' + params.runtime + '</div>');
        });
*/
        uploader.bind('FilesAdded', function(up, files) {
            $.each(files, function(i, file) {
                $('#filelist').append(
                    '<div id="' + file.id + '">' +
                    file.name + ' (' + plupload.formatSize(file.size) + ') <b></b>; ' +
                '</div>');
            });
        });

        uploader.bind('UploadProgress', function(up, file) {
            $('#' + file.id + " b").html(file.percent + "%");
        });

        $('#uploadfiles').click(function(e) {
            uploader.start();
            e.preventDefault();
        });

            uploader.bind('FileUploaded', function(up, file, response) {
                if( (uploader.total.uploaded+1) == uploader.files.length) {
                    location.reload(true);
                }
            });
        uploader.init();
    });
    /* ]]> */
    </script>

Re: uploading stops in chrome 7

Come on, anybody?

Re: uploading stops in chrome 7

hi buddy

if you are using PHP

can you make sure that in php.ini the property

upload_max_filesize = 10M

and also make sure that the code that removes old files (upload.php) is commented out.


comment the lines below:
// Remove old temp files
    if (is_dir($targetDir) && ($dir = opendir($targetDir))) {
        while (($file = readdir($dir)) !== false) {
            $filePath = $targetDir . DIRECTORY_SEPARATOR . $file;

            // Remove temp files if they are older than the max age
            if (preg_match('/\\.tmp$/', $file) && (filemtime($filePath) < time() - $maxFileAge))
                @unlink($filePath);
        }

        closedir($dir);
    } else
        die('{"jsonrpc" : "2.0", "error" : {"code": 100, "message": "Failed to open temp directory."}, "id" : "id"}');

cheers

jas

Re: uploading stops in chrome 7

max size is more than 10MB, i don't use nothing from upload.php, except last report...

Re: uploading stops in chrome 7

ok

can you try to put this line of code in your pl object


resize : {width : 800, height : 600, quality : 90},

i think when this line is missing thats causing IO error for flash and silverlight runtime

cheers

jas

Re: uploading stops in chrome 7

I would like to inform that chrome version 7 is creating problem in uploading.
As i can say that after uploading (80%-95%) it becomes stopped. It is really painful for me.

What is the solution for ?

Re: uploading stops in chrome 7

Chrome 7 isn't a stable browser. Use stable browsers since other versions might be full of bugs. However will soon report a few bugs I found so far with the Chrome upload logic the one current in Chrome 6 has some issues as well.