fixed the upload event example