Re: Plupload 2 Beta

@JFOC, finally got a VM running with Android 4.0.4 and Boat Browser 4.7.2 and successfully uploaded test sound recording. I guess we will need additional information about your case to troubleshoot it further. Can you post your config and go a bit deeper on what type of files you upload?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

27 (edited by JFOC 2012-12-15 06:20:41)

Re: Plupload 2 Beta

davit wrote:

@JFOC, finally got a VM running with Android 4.0.4 and Boat Browser 4.7.2 and successfully uploaded test sound recording. I guess we will need additional information about your case to troubleshoot it further. Can you post your config and go a bit deeper on what type of files you upload?

the files are going to uploads is images and sometimes video.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Teste - Plupload</title>
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/themes/base/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="plupload20a/js/jquery.ui.plupload/css/jquery.ui.plupload.css" type="text/css" />

<!-- <style type="text/css">@import url(plupload20a/js/jquery.plupload.queue/css/jquery.plupload.queue.css);</style>
<!-- <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> -->
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script>
<!-- Third party script for BrowserPlus runtime (Google Gears included in Gears runtime now) -->
<!-- <script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script> -->
<script type="text/javascript" src="js/browserplus.js"></script>
<!-- Load plupload and all it's runtimes and finally the jQuery UI queue widget -->
<script type="text/javascript" src="plupload20a/js/plupload.full.min.js"></script>
<!--<script type="text/javascript" src="plupload20a/js/plupload.gears.js"></script>
<script type="text/javascript" src="plupload20a/js/plupload.silverlight.js"></script>
<script type="text/javascript" src="plupload20a/js/plupload.flash.js"></script>
<script type="text/javascript" src="plupload20a/js/plupload.browserplus.js"></script>
<script type="text/javascript" src="plupload20a/js/plupload.html4.js"></script>
<script type="text/javascript" src="plupload20a/js/plupload.html5.js"></script>-->
<script type="text/javascript" src="plupload20a/js/jquery.ui.plupload/jquery.ui.plupload.js"></script>
<!--<script type="text/javascript" src="plupload20a/js/jquery.plupload.queue/jquery.plupload.queue.js"></script>-->
</head>
<body>




<script type="text/javascript">
var maxfiles = 2; //edit here the number of max uploads
$(function() {
    //$("#uploaderme").pluploadQueue({
    $("#uploaderme").plupload({
        runtimes : 'gears,html5,flash,silverlight,browserplus',
        //runtimes: 'html5',
        url : 'plupload20a/examples/upload.php',
        max_file_size : '1000mb',
        max_file_count: maxfiles,
        chunk_size : '1mb', //divide o arkivo em partes de 1mb
        unique_names : true,
        multiple_queues : true,
        multi_selection: true,
        rename: true,
        multipart: true,
        drop_element: 'uploaderme',
        sortable: true,
        filters : [
            {title : "Images Files (jpg, gif, png)", extensions : "jpg,gif,png"},
            {title : "Video Files (avi,mpg,wmv)", extensions : "avi,mpg,wmv"}
        ],
        //flash_swf_url : 'plupload/js/plupload.flash.swf',
        flash_swf_url : 'plupload20a/js/Moxie.swf',
        //silverlight_xap_url : 'plupload/js/plupload.silverlight.xap',
        silverlight_xap_url : 'plupload20a/js/Moxie.xap',
        
        init : {
            FilesAdded: function(up, files) {
                plupload.each(files, function(file) {
                    if (up.files.length > maxfiles) {
                        up.removeFile(file);
                    }
                    //var upa = $('#uploaderme').pluploadQueue();
                    var upa = $('#uploaderme').plupload('getUploader');
                    var i = 0;
                    while (i<=upa.files.length) {
                        ultimo = upa.files.length;
                        if (ultimo > 1) {
                            if (i > 0) {
                                ultimo2 = ultimo - 1;
                                ii = i-1;
                                if (ultimo2 != ii) {
                                    if (up.files[ultimo - 1].name == upa.files[i-1].name) {
                                        up.removeFile(file);
                                    }
                                }
                            }
                        }
                        i++;
                    }
                });
                if (up.files.length >= maxfiles) {
                    $('#uploaderme_browse').hide("slow");
                }
            },
            FilesRemoved: function(up, files) {
                if (up.files.length < maxfiles) {
                    $('#uploaderme_browse').fadeIn("slow");
                }
            },

            UploadComplete: function (up, file) {
                alert('Upload Complete');
                for(i=0; i<file.length; i++)
                  alert(file[i].name);
                $(".plupload_buttons").css("display", "inline");
                $(".plupload_upload_status").css("display", "inline");
            },

            /*PostInit: function (up) {
                //alert();
                $('#deleteallfiles').click(function (e) {
                    alert('delete all files');
                    up.splice();
                    /*
                    $.each(uploader.files, function (i, file) {
                    uploader.removeFile(file);
                    });
                    */
                /*});
            },*/
            /*FileUploaded: function(up, files) {
                var new_file_field = '<input type="hidden" name="'+files.id+'" value="'+files.name+'" />';
                //alert(new_file_field);
                $('form').append(new_file_field);
            }*/
       }
    });

    /*//var uploader = $('#uploaderme').pluploadQueue();
    var uploader = $('#uploaderme').plupload('getUploader');
    uploader.bind('Init', function (up, params) {
           $('#uploaderme').append('Current runtime: ' + params.runtime);
    });
    uploader.init();*/

    $('#deleteallfiles').click(function (e) {
        //var uploader = $('#uploaderme').pluploadQueue();
        var uploader = $('#uploaderme').plupload('getUploader');
        alert('delete all files');
        uploader.splice();
        /*
        $.each(uploader.files, function (i, file) {
        uploader.removeFile(file);
        });
        */
    });

    $('form').submit(function(e) {
        //var uploader = $('#uploaderme').pluploadQueue();
        var uploader = $('#uploaderme').plupload('getUploader');
        if (uploader.total.uploaded == 0) {
            if (uploader.files.length > 0) {
                /*
                // UPload Queue
                uploader.bind('UploadProgress', function() {
                    if (uploader.total.uploaded == uploader.files.length)
                        $('form').submit();
                });*/

                // UPload UI
                uploader.bind('StateChanged', function() {
                    if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {
                        $('form').submit();
                    }
                });

                uploader.start();


                /*uploader.bind('FileUploaded', function (up, file, info) {
                    var obj = JSON.parse(info.response);
                    var new_file_field = '<input type="hidden" name="finished_files[]" value="'+obj.NewFileName+'" />';
                    $('form').append(new_file_field);
                });*/
                /*uploader.bind('FileUploaded', function (up, file) {
                    var new_file_field = '<input type="hidden" name="finished_files'+file.id+'" value="'+file.name+'" />';
                    //alert(new_file_field);
                    $('form').append(new_file_field);
                });*/
            } else
                alert('You must at least upload one file.');
            return false;
        }
    });
});
</script>

<h1>MultiUpload</h1>
<form method="post" action="showupload.php" enctype="multipart/form-data">
    <div id="uploaderme">
        <p>You browser doesn't have Flash, Silverlight, Gears, BrowserPlus or HTML5 support.</p>
    </div>
    <input type="submit" name="kirim" value="Send File" />
</form>
<div id="deleteallfiles">Delete All Files</div>
</body>
</html>

Re: Plupload 2 Beta

Hello,

What about the possibility to use plupload on cross domain ?

I mean that i need to host plupload scripts on my static subdomain and use them on my others domains.

I was not able to do that with the previous version.

Re: Plupload 2 Beta

This was possible and was turned off intentionally, due to some security concerns. However it was relatively easy with Flash or SilverLight only. You still can get back this functionality if you recompile corresponding shims.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

Today I am trying again updated plupload20 from latest download link.
on boatbrowser or original browser with above configuration after selecting files and give me nothing on return, before it is returning selected filenames (first plupload20 release).
Any chances to get it fixed and working in android ?

Thank you

31 (edited by cacuestai 2012-12-28 02:02:36)

Re: Plupload 2 Beta

The version 2.x does not send the URL full to the server, into $_REQUEST/$_POST. This functionality is required in cases like this:

$("#flash_uploader").pluploadQueue({
    …
    url : '../controller/facade.php?class=Utilities&oper= upload',
    …

Re: Plupload 2 Beta

@cacuestai, this has been fixed a while ago, do you still experience this?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

davit wrote:

This was possible and was turned off intentionally, due to some security concerns. However it was relatively easy with Flash or SilverLight only. You still can get back this functionality if you recompile corresponding shims.

Is there no possibility to create an option to activate it ?
I have no idea how to recompile flash and silverlight.

Re: Plupload 2 Beta

davit wrote:

@cacuestai, this has been fixed a while ago, do you still experience this?

Yes, using the files of 20/12/2012. The server receives something like:

$_REQUEST = Array (
    [name] => o_17fhj6svj12m01sha154j1r3qpscj.gif
)

Thanks,

Carlos

Re: Plupload 2 Beta

@cacuestai, tracked it down. Try to download again.

@Seb33300, sorry no option currently. But I'm working on download configurator at the moment and I'll probably include this as an option.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

I am trying Silverlight in plupload2 on MacOS is not working but plupload with silverlight is working properly

Re: Plupload 2 Beta

Unminified version works. Minified - doesn't. And there are no errors thrown. Interesting.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

@JFOC, Silverlight simply wasn't included in minify process. Yikes... hmm Updated nighlty.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

I see...Any examples for multiparams ?

Re: Plupload 2 Beta

JFOC wrote:

I see...Any examples for multiparams ?

Multiparams?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

davit wrote:
JFOC wrote:

I see...Any examples for multiparams ?

Multiparams?

Sorry I mean is multipart params, As I want to add extra information like title, description for uploaded pictures when files are added into plupload list.

Re: Plupload 2 Beta

This has not changed, doesn't it work the way it worked before?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

davit wrote:

This has not changed, doesn't it work the way it worked before?

Sorry I have not try with previous version, I just dont know how to use multipart_params for adding extra data in every uploaded files, I cannot find any information about multipart_params in documentation.

44 (edited by Seb33300 2013-01-12 13:48:26)

Re: Plupload 2 Beta

With the previous version, multipart_params is a global param for plupload.

So we can't set a multipart param individually for each file.
It is a problem in case that we set the param once, upload a group of files, and change the param for a second group of files.  But if all the first group of files is not uploaded entirely, all the files in the queue will get the new param setted.

To set a multipart param individually on each file, I needed to do this :

uploader.bind('FilesAdded', function(up, files) {
    $.each(files, function(i, file) {
        file.multipart_params = {MyParam: $('#MyParam').val()};
    });
    up.refresh();
    uploader.start();
});

uploader.bind("BeforeUpload", function(up, file) {
    uploader.settings.multipart_params = file.multipart_params;
});


davit wrote:

@Seb33300, sorry no option currently. But I'm working on download configurator at the moment and I'll probably include this as an option.

Thanks !

Re: Plupload 2 Beta

Thanks seb.
I am trying modify ui widget with adding extra field for title and description of every file but when file is changed the position in thumbnail or deleting one of files from thumbnail list the additional fields are not inckuded in send/upload files.

Re: Plupload 2 Beta

@davit : How to download up to date plupload2 version ? What Link ?
do you supporting for some additional custom development for plupload ? IF yes let me know the rate.

Thank you

Re: Plupload 2 Beta

Just installed Plupload 2 Beta. When I add images smaller than 5k (in Thumbnail mode). I get the 'loading' icon. And the thumbnail image never shows. If I try and upload, then nothing happens. If images are larger than 5k, they are shown, and upload correctly. If I switch to List view and add the images smaller than 5k, and hit upload, they upload correctly. Is this a know bug? Does this happen for anyone else?

Re: Plupload 2 Beta

@JFOC, you can always download uptodate nightly from Download page: http://www.plupload.com/download.php

@matjones no, this is not a known bug, thanks for reporting it. Can you please share a typical problematic image? Can you check if you can repeat it with the latest build?

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: Plupload 2 Beta

@matjones no, this is not a known bug, thanks for reporting it. Can you please share a typical problematic image? Can you check if you can repeat it with the latest build?

Is there an email address I can send the images to?

The link on the download page to 2.0 isn't working:

http://www.plupload.com/plupload_2_0a.24010015.zip

Re: Plupload 2 Beta

@Davit: the github there is 3 branch, where is the updated ver 2 branch ? I saw 2.x branch is not up to date if i saw from commit history ?

Thank you