You can't do that. When dealing with file uploads on the server side, the files *have all ready been uploaded* to a temporary location, you cannot reach *back* to the client from the server. What you could do is upload a file containing a list of files and then return a form that contains the files to be uploaded pre-filled - just awaiting the user to hit submit (or if you're really evil - add a javascript handler to autosubmit - hmmm can that be done?). You may also want to use CGI's upload function (or at least read the *CREATING A FILE UPLOAD FIELD* section of CGI).
-derby
Update: Doh! The AM below is correct. Most browsers will not pre-fill a file input field.

In reply to Re: Upload Multiple Files by derby
in thread Upload Multiple Files by arun_amiable

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.