This commit is contained in:
Henrique Dias 2016-06-11 22:10:02 +01:00
parent ba64a3df0f
commit c5dc03ad8b
2 changed files with 5 additions and 2 deletions

View File

@ -5,6 +5,8 @@
## Roadmap
**All of this features are already written in backend :)**
+ [ ] Rename files
+ [ ] Upload files and drag & drop
+ [ ] Delete files

View File

@ -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)
}
@ -80,6 +79,8 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
}
// return f.ServeSingleFile(w, r, file, c)
return http.StatusNotImplemented, nil
case http.MethodPost:
// Upload a new file
if r.Header.Get("Upload") == "true" {