mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
feat: allow disabling file detections by reading header (#1175)
This commit is contained in:
parent
43e0d4a856
commit
6914063853
8 changed files with 104 additions and 85 deletions
|
|
@ -27,11 +27,12 @@ var withHashFile = func(fn handleFunc) handleFunc {
|
|||
d.user = user
|
||||
|
||||
file, err := files.NewFileInfo(files.FileOptions{
|
||||
Fs: d.user.Fs,
|
||||
Path: link.Path,
|
||||
Modify: d.user.Perm.Modify,
|
||||
Expand: true,
|
||||
Checker: d,
|
||||
Fs: d.user.Fs,
|
||||
Path: link.Path,
|
||||
Modify: d.user.Perm.Modify,
|
||||
Expand: true,
|
||||
ReadHeader: d.server.TypeDetectionByHeader,
|
||||
Checker: d,
|
||||
})
|
||||
if err != nil {
|
||||
return errToStatus(err), err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue