ensures enctype attribute is added in BeginUmbracoForm.

Adds CurrentCulture to RenderModel
This commit is contained in:
Shannon Deminick
2012-10-02 21:19:21 +05:00
parent 56c93891a8
commit 2753dbe5b4
3 changed files with 18 additions and 5 deletions

View File

@@ -366,6 +366,12 @@ namespace Umbraco.Web
object additionalRouteVals = null)
{
//ensure that the multipart/form-data is added to the html attributes
if (!htmlAttributes.ContainsKey("enctype"))
{
htmlAttributes.Add("enctype", "multipart/form-data");
}
var tagBuilder = new TagBuilder("form");
tagBuilder.MergeAttributes(htmlAttributes);
// action is implicitly generated, so htmlAttributes take precedence.