Added support for file inputs with input directive