fix status code bug in upload workflow