mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-07-17 16:36:49 +00:00
fix(csv-viewer): add support for missing text encodings in dropdown list (#5795)
This commit is contained in:
parent
c950a57df8
commit
4af3f85e64
7 changed files with 439 additions and 17 deletions
|
|
@ -43,7 +43,7 @@ var resourceGetHandler = withUser(func(w http.ResponseWriter, r *http.Request, d
|
|||
return renderJSON(w, r, file)
|
||||
} else if encoding == "true" {
|
||||
if file.Type != "text" {
|
||||
return http.StatusUnsupportedMediaType, fmt.Errorf("file is not a text file")
|
||||
return renderJSON(w, r, file)
|
||||
}
|
||||
|
||||
f, err := d.user.Fs.Open(r.URL.Path)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue