views:

198

answers:

2

Hello

I want to implement file uploading with behaviour which is commonly seen in various kinds of webmail interfaces. I mean here that attachment (one or more) are selected by open file dialog and then their names are apearing under (for example) text area with body of message. And there is only info that attachment is added and it be uploaded when form is submitted. I know it would include AJAX maybe some server side scripts, but I have completly no idea where and how search examples of such kind of mechanism.

thanks in advance

A: 

AJAX is not a requirement, neither is Javascript. Only a form with an <input type="file">. Your server has to process the result though which obviously depends on the language you're using.

SpliFF
yes, but I mean one or multiple files and upload only when upload connected form (with other fields than only upload) is submitted
MoreThanChaos
Just use JS to add more file inputs as files are added.
SpliFF
+2  A: 

See is-it-possible-to-ajax-a-file-upload.

Standard browser + Javascript is not enough, extra help is needed. A combination of browser plugin like flash and server-side support. Look for a solution within the web frameworks that the application is using (or considering).

gimel