reset before upload