Direct mount to /data and dynamic .tmp creation
- Change Docker mount from /data/uploads to /data directly - Remove pre-creation of .tmp directory in Dockerfile - Add dynamic creation of .tmp directory during chunked upload - Hide all dot-prefixed directories in file listing - Files now appear directly in root directory without uploads folder
This commit is contained in:
10
main.go
10
main.go
@@ -118,11 +118,11 @@ func listFiles(c *gin.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var files []FileInfo
|
var files []FileInfo
|
||||||
for _, entry := range entries {
|
for _, entry := range entries {
|
||||||
name := entry.Name()
|
name := entry.Name()
|
||||||
if name == "." || name == ".." || name == "static" {
|
if name == "." || name == ".." || strings.HasPrefix(name, ".") {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
entryPath := filepath.Join(path, name)
|
entryPath := filepath.Join(path, name)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user