mirror of
https://github.com/filebrowser/filebrowser.git
synced 2024-06-07 23:00:43 +00:00
update
This commit is contained in:
parent
ba64a3df0f
commit
c5dc03ad8b
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
## Roadmap
|
## Roadmap
|
||||||
|
|
||||||
|
**All of this features are already written in backend :)**
|
||||||
|
|
||||||
+ [ ] Rename files
|
+ [ ] Rename files
|
||||||
+ [ ] Upload files and drag & drop
|
+ [ ] Upload files and drag & drop
|
||||||
+ [ ] Delete files
|
+ [ ] Delete files
|
||||||
|
@ -70,7 +70,6 @@ func (f FileManager) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, err
|
|||||||
|
|
||||||
query := r.URL.Query()
|
query := r.URL.Query()
|
||||||
if val, ok := query["raw"]; ok && val[0] == "true" {
|
if val, ok := query["raw"]; ok && val[0] == "true" {
|
||||||
// wanna raw file
|
|
||||||
return f.Next.ServeHTTP(w, r)
|
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.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:
|
case http.MethodPost:
|
||||||
// Upload a new file
|
// Upload a new file
|
||||||
if r.Header.Get("Upload") == "true" {
|
if r.Header.Get("Upload") == "true" {
|
||||||
|
Loading…
Reference in New Issue
Block a user