mirror of
https://github.com/nxshock/simplefileshare.git
synced 2025-07-02 00:13:36 +05:00
Implement multiple file upload
This commit is contained in:
parent
09463c3b24
commit
c41ff56ffa
4 changed files with 62 additions and 54 deletions
2
main.go
2
main.go
|
@ -28,7 +28,7 @@ func init() {
|
|||
}
|
||||
|
||||
if config.RemoveFilePeriod > 0 {
|
||||
go removeOldFilesThread(config.StoragePath, time.Duration(config.RemoveFilePeriod)*time.Hour)
|
||||
go removeOldFilesThread(time.Duration(config.RemoveFilePeriod) * time.Hour)
|
||||
}
|
||||
|
||||
http.HandleFunc("/", HandleRoot)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue