From c5dc03ad8bde64f2101e0dce2689e0974634868b Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sat, 11 Jun 2016 22:10:02 +0100 Subject: [PATCH] update --- README.md | 2 ++ filemanager.go | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b58131b8..947d3f6e 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ ## Roadmap +**All of this features are already written in backend :)** + + [ ] Rename files + [ ] Upload files and drag & drop + [ ] Delete files diff --git a/filemanager.go b/filemanager.go index bb241b40..dba56985 100644 --- a/filemanager.go +++ b/filemanager.go @@ -70,7 +70,6 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err query := r.URL.Query() if val, ok := query["raw"]; ok && val[0] == "true" { - // wanna raw file return f.Next.ServeHTTP(w, r) } @@ -79,7 +78,9 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err return f.Next.ServeHTTP(w, r) } - // return f.ServeSingleFile(w, r, file, c) + // return f.ServeSingleFile(w, r, file, c) + + return http.StatusNotImplemented, nil case http.MethodPost: // Upload a new file if r.Header.Get("Upload") == "true" {