Generate a hidden_tag when using a file_field

Closes #17947