Fix uploading through event