The solution I've seen used is to create a form, with a file-upload in
it, and an iframe to which you post the file-upload form. Or the form
within the iframe.

The iframe is supposed to be hidden via css, ofcourse.

Once the file has been uploaded, you output a script that tells the
main application if the fileupload worked and you can take whatever
actions needed.

I believe drupal 5 is using this approach or a variation of it.

Happy JQ-ing!

On Apr 2, 10:28 pm, "Leonardo K" <[EMAIL PROTECTED]> wrote:
> I thing you can't change the value property from a input file.
>
> In your example page it creates a new input file every time you choose a
> file and hide the old input file with the filled value. Thats the magic.
> When you click on delete it remove the hidden input file.
>
> Sorry my bad english.
>
> On 4/2/07, Mario Moura <[EMAIL PROTECTED]> wrote:
>
>
>
> > Could I create in my target input <input type="file" /> a JQuery function
> > to load, clone, submit, autofill or I dont know what to accept user choice
> > from
> >http://the-stickman.com/web-development/javascript/upload-multiple-fi...
>
> > So I could get each path(element) and insert into each target (<input
> > type="file" name="target1" /> <input type="file" name="target2" />
>
> > Or please tell me it is impossible so I will forget this.
>
> > Regards
>
> > macm
>
> > 2007/4/2, Kush Murod < [EMAIL PROTECTED]>:
>
> > > well looks like next plugin improvement for form plugin, hey Mike Alsup
> > > :)
>
> > > macm wrote:
> > > > Hi
>
> > > > I am trying upload without refresh so I tried
>
> > > >http://the-stickman.com/web-development/javascript/upload-multiple-fi...
>
> > > > Works like a charm but:
>
> > > >     Browser Peculiarities
>
> > > >     * Internet Explorer and Netscape do not use the VALUE attribute as
> > > > the default contents of the input area. Any default value set via HTML
>
> > > > is not usable via scripting and the DOM as well (hence it is not
> > > > listed as 'supported' in any of the browsers.) If a user enters text
> > > > in the field however, that value is then reachable via the DOM as it
> > > > normally would be for a normal INPUT field (via the .value property.)
> > > > The reason for this behavior would presumably be to ensure the
> > > > security/safety of users against malicious authors. Opera displays the
>
> > > > default VALUE attribute value and submits it as well (although it
> > > > prompts for confirmation on submit if you have not altered that
> > > > value.)
>
> > > >     from:
> > >http://www.blooberry.com/indexdot/html/tagpages/i/inputfile.htm
>
> > > > I heard that exist a trick about this and I would like to know who can
> > > > tell me.
>
> > > > So How I have paths from example above.
>
> > > > Something like that => c:/mydocuments/myfile.gif
>
> > > > How can I insert this in input file element? (I know how can I insert
> > > > but the problem isnt accept like I said before)
>
> > > > If Input file dont accept value=" " how can I insert the path into
> > > > input element?
>
> > > > Regards
>
> > > > macm
>
> > --
> > Mário Alberto Chaves Moura
> > [EMAIL PROTECTED]
> > 31-9157-6000

Reply via email to