1 The server-side code should consist of two parts.
3 1. For IE6-8, Opera, older versions of other browsers you get the file as
4 you normally do with regular form-base uploads.
6 2. For browsers which upload file with progress bar, you will need to get the raw
7 post data and write it to the file.
11 You should return json as a text/html, and escape all
12 '<' as '<', '>' as '>', and '&' as '&'.
15 {"success":true} when upload was successful
16 {"error":"error message to display"} in case of error
18 Send me a mail to andrew (at) valums.com, if you will have any questions.