Add support to xml templates for uploading files

Allows to add enctype="multipart/form-data" to forms in xml view templates