Clear data on upload complete and fail. Prevent onError from firing multiple times