Changing int to int64_t fixes a 2GB upload limit bug for me