From 4a19fd64412dc111bac3c1b56cf3eb55728d2ba3 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Mon, 15 Aug 2016 01:42:20 -0700 Subject: Web editor: temporarily disable upload and quick fix for edit and new Try to merge into develop branch ASAP, then continue minor fixes afterwards. --- cmd/web.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/web.go b/cmd/web.go index d14d1efcd9..3b43a71cc2 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -508,8 +508,8 @@ func runWeb(ctx *cli.Context) error { Post(bindIgnErr(auth.UploadRepoFileForm{}), repo.UploadFilePost) m.Post("/_delete/*", bindIgnErr(auth.DeleteRepoFileForm{}), repo.DeleteFilePost) m.Post("/branches", bindIgnErr(auth.NewBranchForm{}), repo.NewBranchPost) - m.Post("/upload-file", repo.UploadFileToServer) - m.Post("/upload-remove", bindIgnErr(auth.RemoveUploadFileForm{}), repo.RemoveUploadFileFromServer) + // m.Post("/upload-file", repo.UploadFileToServer) + // m.Post("/upload-remove", bindIgnErr(auth.RemoveUploadFileForm{}), repo.RemoveUploadFileFromServer) }, reqRepoWriter, context.RepoRef(), func(ctx *context.Context) { if ctx.Repo.IsViewCommit { ctx.Handle(404, "", nil) -- cgit v1.2.3