shashalien / upload-at-click

Automatically exported from code.google.com/p/upload-at-click
0 stars 0 forks source link

Multiple upload #18

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

This is not problem, just improvement I've made for self.
Multiple upload files! It already work, but form don't allow to select multiple 
files. I've add code at line near 116:

if(params['multiple']){
   input.multiple='multiple';
}

and provide default value of params['multiple'] as false. (line near 25)

So, now it's simply:
 upclick(
     {
      dataname:'Photo[]',
      multiple: true,
...
});

Also, need name of form input like this: <input name="Photo[]" ... />
Notice that [] means array for php and allow to upload multiple files. I dont 
know whether another language do the same.

What version of the product are you using? On what operating system?
Windows 7x86 Google Chome 19.0.***

Original issue reported on code.google.com by fomy.s...@gmail.com on 7 Jul 2012 at 11:37