Mismatched variable name was crashing iOS after photo upload