I have an ASP.NET web application and on specific page user can add an entry, together with two images. Up until now I have came across many great working jQuery plugins, which can be easily integrated and used for upload. I found this one http://pixelcone.com/jquery/ajax-file-upload-script/ perfect for my needs, it just needs to be cloned.
But the question is: how can I create multiple instances (two in this case) of the same plugin? Just to be clear, I need two plugins which upload a single image each to their location (plugin1->location 1; plugin2->location2).
P.S. By talking about 'two instances' I mean two separate forms as well (not one form with multiple files).
Any comments would be greatly appreciated!
Use two different selectors when you call the plugin.
e.g.
$('.fileUploadOne, .fileUploadTwo').fileUploader();
<input type="file" name="file" class="fileUploadOne" multiple>
<input type="file" name="file" class="fileUploadTwo" multiple>
And update your controllers properly with the correct params you want to files to go to.