-
-
Notifications
You must be signed in to change notification settings - Fork 72
FileTag
Antonio Pagano edited this page Jan 29, 2018
·
3 revisions
FileTag is useful when adding file input fields into your form
or form_for
.
When adding a file input to your form, it will change the enctype to be multipart/form-data
. Usage of FileTag is as follows:
//form_for
f.FileTag("MyFile")
//form
f.HiddenTag({"name":"MyFile"})
Produce respectively
//form_for
<input type="file" name="talk-MyFile" />
//form
<input type="file" name="MyFile" />