]> git.mxchange.org Git - friendica-addons.git/blob - js_upload/file-uploader/server/readme.txt
some files were executable, now they are not
[friendica-addons.git] / js_upload / file-uploader / server / readme.txt
1 The server-side code should consist of two parts.
2
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.
5
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.
8
9 ## Return values ##
10
11 You should return json as a text/html, and escape all
12 '<' as '&lt;', '>' as '&gt;', and '&' as '&amp;'.
13
14 Return
15 {"success":true} when upload was successful
16 {"error":"error message to display"} in case of error
17
18 Send me a mail to andrew (at) valums.com, if you will have any questions.