diff options
author | Unknwon <u@gogs.io> | 2016-08-15 01:42:20 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-15 01:42:20 -0700 |
commit | 4a19fd64412dc111bac3c1b56cf3eb55728d2ba3 (patch) | |
tree | 57d03a9b2f6aab9b1f0f69a2926c0e8418e66be0 /cmd | |
parent | 54e0ada9d53c28543a436d266dc73e759cc7658b (diff) | |
download | gitea-4a19fd64412dc111bac3c1b56cf3eb55728d2ba3.tar.gz gitea-4a19fd64412dc111bac3c1b56cf3eb55728d2ba3.zip |
Web editor: temporarily disable upload and quick fix for edit and new
Try to merge into develop branch ASAP, then continue minor fixes afterwards.
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) |