Brian,
 I our requirement i need to add this file elements dynamically for each
file path. And for each element i need the count of files that are uploaded
under that filepath.
Hope you understand my question now. Help is apprecited.

Thanks
Jay
On Tue, Dec 29, 2009 at 12:56 PM, brian <zijn.digi...@gmail.com> wrote:

> You shouldn't need more than one file element to begin with. The
> plugin takes care of creating new ones. Or, perhaps I don't understand
> what it is you're trying to do.
>
> On Tue, Dec 29, 2009 at 1:27 PM, jayakumar ala <alajay...@gmail.com>
> wrote:
> > Anyone can help me on this..????
> >
> > On Mon, Dec 28, 2009 at 10:39 AM, jayakumar ala <alajay...@gmail.com>
> wrote:
> >>
> >> Hi,
> >>
> >> I am using Multifile plugin to select the multiple file. I am trying to
> >> get the final file count for each browser selection . Any help is
> >> appreciated.
> >>
> >> Here is the sample code i am using
> >>
> >> <html>
> >> <script type="text/javascript" src="js/jquery.js"></script>
> >> <script type="text/javascript" src="js/jquery.MultiFile.js"></script>
> >> <script>
> >> var intVal=2;
> >> $(document).ready(function(){
> >>     $('#addFileButton').click(function(){addUploadFile();});
> >>  });
> >>
> >> function addUploadFile() {
> >> intVal++;
> >> $('<div id="addVal'+intVal+'">Please specify a file, or a set of files
> >> (dynamically):<br>'+
> >>    '<input type="file" class="multi" name="df'+intVal+'"
> id="df'+intVal+'"
> >> size="40"/></div>').appendTo('#outerVal');
> >> $('#df'+intVal).MultiFile();
> >> }
> >> </script>
> >>
> >> <form action="doUpload" enctype="multipart/form-data" method="post">
> >> <div id="outerVal">
> >> <!--p>
> >> Type some text (if you like):<br>
> >> <input type="text" name="textline" size="30">
> >> </p-->
> >> <div id="addVal1">
> >> Please specify a file, or a set of files:<br>
> >> <input type="file" class="multi" name="df1" size="40">
> >> </div>
> >> <div id="addVal2">
> >> Please specify a file, or a set of files:<br>
> >> <input type="file" class="multi" name="df2" size="40">
> >> </div>
> >> </div>
> >> <div>
> >> <input type="submit" value="Send">
> >> <input type="button" class="button" value="Add File" id="addFileButton"
> />
> >> </div>
> >> </form>
> >> </html>
> >>
> >> Thanks
> >> Jay
> >>
> >
>

Reply via email to