Update at lne 94 - it was corrupting the uploaded file.

This line was corrupting the file appending a not required linebreak to the original file (2 extra bytes).
94: //postData = LINEBREAK(postData);