Fix issue where file uploads would persist when adding widgets.