corrected txt and html rewrite, handle related

Fixed payload rewrite, added some extra parameter disable_upload=1