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
|
||||
for _, entry := range entries {
|
||||
name := entry.Name()
|
||||
if name == "." || name == ".." || name == "static" {
|
||||
continue
|
||||
}
|
||||
for _, entry := range entries {
|
||||
name := entry.Name()
|
||||
if name == "." || name == ".." || strings.HasPrefix(name, ".") {
|
||||
continue
|
||||
}
|
||||
|
||||
entryPath := filepath.Join(path, name)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user