Re: Plupload 2 Beta

@ jendaneu

1) Very soon.
2) Yes, might be minor updates to license agreement though.
3) Yes.

Re: Plupload 2 Beta

Is there a way to get the add files (browse) button element from the uploader so support for multiple browse buttons can continue.  Example below of old 1.5.7 method.

uploader.bind('Init', function (up, params) {
        if (up.settings.multipart_params.browse_buttons.length > 0) {
                $.each(up.settings.multipart_params.browse_buttons, function (buttonIndex) {
                    plupload.addEvent(this, 'click', function (e) {

                        var input = document.getElementById(up.id  + '_' + params.runtime);
                        if (input && !input.disabled) {
                            input.click();
                        }
                        e.preventDefault();
                    });
                });
        }
    });


I know the params.runtime doesn't return the actual runtime anymore so that'll be removed.  But it doesn't appear document.getElementById(up.id) returns the element of the browse button anymore.

Did the format of that id change possibly?

Re: Plupload 2 Beta

I do not think we've ever supported this - looks more like a hack. Why not simply instantiate several Plupload uploaders? Otherwise you can instantiate Plupload into a specific container element by passing container's id (or a container itself) as a value for container option, and then search for an Plupload structures within it after upload finishes initialization.

uploader.id doesn't correspond to browse_buttons id in Plupload 2, they are just an arbitrary unique ids.

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

Re: Plupload 2 Beta

I guess this scenario would be specifically for the custom solution.  Having multiple uploaders that target the same container would be a solution but doesn't seem elegant.  Especially since it ends up being the same code that just has a different id for the "add files" button.  It does seem like the only solution now is to add some hacks in order to reuse the same uploader.

Thanks for your assistance.

Re: Plupload 2 Beta

Plupload2 is not working on IE8 without flash (html4 on IE8).  I just downloaded the latest build and still not working.  When I switch the plupload script file to 1.5.7 it is working on IE8 with html4.  I'm not getting any errors, it just fails to initialize.  The PostInit event never fires.

Re: Plupload 2 Beta

Hello, is there any support for more drop zones in plupload2? I mean something like: drop-element: 'selector'.
If not, will it be available in future releases?

Thanks.

Re: Plupload 2 Beta

We had a slight twist in the logic with the previous build, but now we came to a conclusion that while it has some sense, drawbacks are far more dramatic, so we bailed out. Could you guys try the latest nightly and see if you still get any unexpected errors?

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

Re: Plupload 2 Beta

Hello, is there any progress in plupload2 developement? It's still beta version and it seems to me like all the project freezed up - no news no new subversions ... Please let me now if I can rely on plupload2 in close future because I am going to use it in commercial website. Also please take a look at my previous post - I got no reply :-(.

Thank you very much for advance.

Re: Plupload 2 Beta

jendaneu wrote:

Hello, is there any progress in plupload2 developement? It's still beta version and it seems to me like all the project freezed up - no news no new subversions ... Please let me now if I can rely on plupload2 in close future because I am going to use it in commercial website. Also please take a look at my previous post - I got no reply :-(.

Thank you very much for advance.

Check Plupload Github

Re: Plupload 2 Beta

Ok, thanks JFOC, but I still have question / suggestion unanswered for long time:

Is there any support for more drop zones in plupload2? I mean something like: drop-element: 'selector'.
If not, will it be available in future releases?

Thanks.

Re: Plupload 2 Beta

jendaneu wrote:

Ok, thanks JFOC, but I still have question / suggestion unanswered for long time:

Is there any support for more drop zones in plupload2? I mean something like: drop-element: 'selector'.
If not, will it be available in future releases?

Thanks.

If i am not wrong drop_element is could be your element ID.
[drop_element] String|DOMElement
id of the DOM element or DOM element itself to use as a drop zone for Drag-n-Drop.

example:
<div id="mydropzone"><p>You browser doesn't have Flash, Silverlight, Gears or HTML5 support.</p></div>
drop_element : 'mydropzone'

More details: https://github.com/moxiecode/plupload/wiki/Uploader

Re: Plupload 2 Beta

Thanks JFOC, and that's just my suggestion that it would be nice to have more drop zones. So one could write for example something like:

drop_element : '.my_class'

So drop element work as jQuery selector. I think this would be very useful (at least fro me :-)).

Re: Plupload 2 Beta

Could you please add an option for a folder select button ? (enable not only dropping folders .. )
That would open a folder select dialog
like the one in mega.co.nz

Thanks !

Re: Plupload 2 Beta

It is possible, it's just that it works only in Chrome, since only Chrome has implemented support for it. But in most cases it is hardly usable, since you require a separate button to pick folders, as the single one cannot do both.

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

90 (edited by jendaneu 2013-09-23 09:44:05)

Re: Plupload 2 Beta

Hello, the version taken from GitHub always shows me runtime HTML5 (which I have on the first place of runtimes) even in IE7-9 and Safari 5.1 for Windows. How is it possible? Thanks a lot for reply.

Re: Plupload 2 Beta

What do you mean it shows html5?

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

92 (edited by jendaneu 2013-09-24 07:46:15)

Re: Plupload 2 Beta

Hi Davit, I mean this:

that.uploader.bind('Init', function (up, params) {
                alert(params.runtime);
                }
});

In Ie 7 - 9 it even really chunks the upload (but maybe it's because of Silverlight -  I use html, silverlight runtimes in this order). In Safari 5.1 for Win. it also shows me html5 but the upload is not chunked.

Thanks.

Re: Plupload 2 Beta

Options in the config are considered as recommended rather than required, so they are simply taken into account and fulfilled where possible. If you want them to be considered as required then you can pass:

required_features: true

to your config.

While Safari 5.1 can upload files in HTML5 manner, it can't slice them, since it's File API is quite limited. But since as I said above by default options are only recommended we close our eyes on this and use HTML5 anyway. Main goal is to upload the file after all.

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

Re: Plupload 2 Beta

Thanks for reply Davit, now I see how it should work, but it does not work. If I set required_features to true and have 'html5,silverlight' specified in runtime, I get correctly html5 value for ie10, but always null value for ie7-9 (there should be silverlight instead of null). If I set runtime only to 'silverlight', I get always null value for ie7-ie10. I use windows 8 and have silverlilght installed. Do you have any idea why is it so?

Thnaks many times.

Re: Plupload 2 Beta

And what happens in Safari 5.1?

Post your config please. Or even better - create a fiddle.

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

96 (edited by jendaneu 2013-09-25 06:46:08)

Re: Plupload 2 Beta

In Safari 5.1 I get null too when i have required_features set to true. I've just tried this:
http://jsfiddle.net/gh/get/jquery/1.9.1 … re/bundled

and I am even more confused. In Safari 5.1 it works only when I have not set required_features to true, but in ie10 it does not work at all. In FF, Chrome and Opera it's OK even when I set required_features to true.

I send my config also:

                    runtimes: 'html5,silverlight'
                    ,
                    browse_button: that.$browseButton[0]
                    ,
                    container: $element.attr("id")
                    ,
                    drop_element: that.$dropZoneElement[0]
                    ,
                    dragdrop: true
                    ,
                    chunk_size: '1mb'
                    ,
                    required_features: true
                    ,
                    //required_features: 'chunking'
                    //,
                    max_file_size: '2gb'
                    ,
                    multipart: true
                    ,
                    multipart_params: {
                        "path" : this.options.path.join("\\")
                    }
                    ,
                    url: this.options.url
                    ,
                    flash_swf_url: that.jsFileLocation + 'Moxie.swf'
                    ,
                    silverlight_xap_url: that.jsFileLocation + 'Moxie.xap'

Thanks a lot for advance...

Re: Plupload 2 Beta

Drag'n'drop is only supported in html5, when you set required_features to true, it also becomes a required feature and since neither flash nor silverlight support it, Plupload fails to initialize.

Btw, dragdrop is the option for UI Widget, Core API doesn't support such option, drop_element is enough to tell it that it requires drag'n'drop feature. Try to comment it out.

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

Re: Plupload 2 Beta

Still does not work. If there is required_feauters set to true, it does not work. As I said even when I tested via the link I sent you it did not work and there was no dragdrop. Anyway thanks for your advice, I removed that dragdrop in my config.
In fact it is all not so big problem for me becasuse I don't have to use required_features set to true eventually. But I am still confused why in ie7-9 it shows me html5 than. It should show Silverlight. Am I right?

Thanks.

Re: Plupload 2 Beta

And without required_features it loads Silverlight runtime properly? Have you removed dragdrop option and commented out drop_element?

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

100 (edited by jendaneu 2013-09-26 07:17:46)

Re: Plupload 2 Beta

Hi Davit, first of all I am very sorry because I thought you spoke only about dragdrop (widget) property in the last post. Now it begins to make sense. When I have there required_feauters and remove also drop_element than everything is perfect!
But now please tell me what runtime does e.g. ie7 use when I have not set required_features to true? It shows me html5 and thats very strange - how can ie7 support html5? I think silverlight should be there. Or is the same as for Safari 5.1 and ie7 can upload files in html5 manner? Ie7 even chunks upload succesfully :-O

Thanks a lot.