forked from space-syndicate/space-station-14
The previous implementation stored base64 content in shell variables, which exceeded the ~2MB ARG_MAX limit when JSON files were large. Now writes payload to a temp file and uses curl -d @file instead.