Upload before cleaning up html