Javascript – How to upload a file using javascript


I have this form where i ultimately want to be able to upload several files, and those files will appear in a textarea tag right underneath. How do i upload files using javascript?

Best Solution

The easy path is go with a plugin. Here is an upload plugin for jQuery library.