From 643142acab44d46aa6c001c90ad5d307a8662b99 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Tue, 30 Aug 2016 05:07:50 -0700 Subject: Web editor: support upload files --- modules/auth/repo_form.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/auth') diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index 0ed4c1b2..d1e28dc1 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -316,7 +316,7 @@ func (f *EditPreviewDiffForm) Validate(ctx *macaron.Context, errs binding.Errors // type UploadRepoFileForm struct { - TreeName string `binding:MaxSize(500)"` + TreePath string `binding:MaxSize(500)"` CommitSummary string `binding:"MaxSize(100)` CommitMessage string CommitChoice string `binding:"Required;MaxSize(50)"` -- cgit v1.2.3