1

(4 replies, posted in General discussion)

looks like your flash file is the problem, when I navigate to your plupload.flash.swf url and right click it's showing to me "movie not loaded"

but when I navigate to http://www.plupload.com/plupload/js/plupload.flash.swf it's not showing this message when I right click and also it's opening the dialog to select the files when clicking on it.

downloading the last plupload version from the site and overwriting all your old plupload files with it should solve your problem.

I couldn't find where you initialize the allVals

var allVals = [];

try using

var dropElm = document.getElementById(uploader.settings.drop_element);
plupload.removeEvent(dropElm, 'dragenter', up.id);
plupload.removeEvent(dropElm, 'dragover', up.id);
plupload.removeEvent(dropElm, 'drop', up.id);

try putting "uploader.refresh()" after the deletion

uploader.removeFile(file);
$(this).remove();
uploader.refresh();

no, what I want to show you is that you can't use $('#subject').val() to get which checkboxes are checked

here's the code you need:

     $('input[type="checkbox"]:checked').each(function() {
       allVals.push($(this).val());
     });
     up.settings.multipart_params = {'subject' : allVals.join()};

6

(4 replies, posted in General discussion)

tried the address you posted but I'm being redirected to the main page.

IE8 doesn't support HTML5 and maybe some of your clients don't have the flash,gears,silverlight,browserplus installed.

I suggest you to add the html4 runtime at the end of the list.

7

(4 replies, posted in General discussion)

if you trying to run the example opening it from your local files, it won't work as the flash, for security reasons, doens't integrate with javascript in local files, you should put it on a web server (even local web servers - localhost).

see this:

http://stackoverflow.com/questions/7861 … -in-jquery

9

(7 replies, posted in General discussion)

so, I can't imagine what's the problem then.

10

(9 replies, posted in General discussion)

event handlers

11

(9 replies, posted in General discussion)

the only way to define events handlers are:
- in preinit
- in init
- and with the bind method

12

(7 replies, posted in General discussion)

unfortunately, my page is in a restrict area.

Try updating your flash and see if it works

13

(7 replies, posted in General discussion)

I have a plupload form running in my site with the same code as http://www.plupload.com/example_queuewidget.php and I changed the jquery selector to the id of my form and it's working fine. So I'm assuming that you made some mistake when changing your code.

14

(9 replies, posted in General discussion)

you didn't read it right. let me change the bold font position

preinit
    Function callback that enables you to bind events before the uploader is initialized.

so you're not executing code on preinit, but only binding the events to plupload before the native events are bound

and thinking a little more deeply, why someone will define a section that executes any code before the plupload is initialized? if we need this, we just put our code before calling the plupload initialization code. Right?

15

(7 replies, posted in General discussion)

when using $("#myFormId").submit() it should work.

please post your entire code, preferably in jsfiddle, like:

http://jsfiddle.net/LeandroJF/AM8Zp/

16

(9 replies, posted in General discussion)

the term "section" is something that I came up with to explain this for you.

the http://www.plupload.com/documentation.php already have an explanation about the "preinit"

17

(9 replies, posted in General discussion)

the preinit is a section and the postinit is an event.

all events inside the "preinit" section will be executed before the event defined by plupload. In this case the "postInit" event is already defined inside the runtimes html5, gears and browserplus. So if your postinit event must run before the defined plupload code, you should put it inside the preinit section

18

(3 replies, posted in Core API)

try set the "multi_selection" setting to false to select one file at a time

try to update you flash version, may be it can help.

20

(2 replies, posted in General discussion)

looks like you're using the code used by the queue examples:

$('form').submit(function(e) {

As you can see, you're using the jquery selector to select all forms

just assign an id to your plupload form and use the following code:

$('#id').submit(function(e) {

the "getUploader" parameter should only be used in the UI widget. In Queue widget you should not pass any param.

http://www.plupload.com/punbb/viewtopic … 3950#p3950

1. the link is because you can delete files before the upload

$("li.plupload_done > div.plupload_file_action > a").add("li.plupload_failed > div.plupload_file_action > a")click(function() {return false;})



2. $('#uploader_container').removeAttr("title"); //remove the using runtime text

try changing to html5 runtime and see if you get the same problem.

24

(3 replies, posted in General discussion)

try what is suggested at the examples:

// Client side form validation
        $('form').submit(function(e) {
            var uploader = $('#uploader').pluploadQueue();
     
            // Files in queue upload them first
            if (uploader.files.length > 0) {
                // When all files are uploaded submit form
                uploader.bind('StateChanged', function() {
                    if (uploader.files.length === (uploader.total.uploaded + uploader.total.failed)) {
                        $('form')[0].submit();
                    }
                });
                     
                uploader.start();
            } else {
                alert('You must queue at least one file.');
            }
     
            return false;
        });

I use flash runtime with the last version and don't have this problem. post your entire code, preferably in jsfiddle, like:

http://jsfiddle.net/LeandroJF/AM8Zp/