First of all, thanks for making the excellent tutorial on plupload, it has helped me get over the learning curve (even though I don't know French).

Have you been able to get the plupload setting "multi_selection: false" to work? It is not documented on the source's website (that I can find), and I think it is supposed to allow exactly one file to be uploaded which is what I want. I'm thinking it is broken so I may have to loop through the files and use the removeFile method.

Can you (or anyone help) help?

Thanks,
Ron

edit:
I worked around this by using this code in my FilesAdded event handler (delete all but first image):
sv_upload_instance.bind('FilesAdded', function(up, files) {
// after files are added, remove all but the first one
while (up.files.length > 1){
up.removeFile(up.files[up.files.length-1]);
};

Aucune réponse