We need to return TRUE if got_error == 1, not error, which is initialized to FALSE.
Attach a file by drag & drop or click to upload