Javascript – How to upload a file using javascript

file-uploadhtmljavascript

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.