Add files via upload
This commit is contained in:
parent
a078f0b787
commit
4a5f8a017d
@ -7,7 +7,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
"path/filepath"
|
||||||
"github.com/gorilla/mux"
|
"github.com/gorilla/mux"
|
||||||
|
|
||||||
"github.com/filebrowser/filebrowser/v2/files"
|
"github.com/filebrowser/filebrowser/v2/files"
|
||||||
@ -152,5 +152,6 @@ func createPreview(imgSvc ImgService, fileCache FileCache,
|
|||||||
}
|
}
|
||||||
|
|
||||||
func previewCacheKey(fPath string, fTime int64, previewSize PreviewSize) string {
|
func previewCacheKey(fPath string, fTime int64, previewSize PreviewSize) string {
|
||||||
|
fPath = filepath.Base(fPath)
|
||||||
return fmt.Sprintf("%x%x%x", fPath, fTime, previewSize)
|
return fmt.Sprintf("%x%x%x", fPath, fTime, previewSize)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user