The defendant in any attachment whose property has been attached at any time before the expiration of 10 days after the return of attachment may file in the court or with the justice of the peace where the writ is returnable an affidavit denying the demand of the plaintiff in whole or in part.