Use correct value for upload event.

From #4938.