Fix API interfacing bug

Turns out "1" is not a valid response to indicate a successful upload, 0
= success and -1 = failure