specify-expiry-and-urllen #2

Closed
Ghost wants to merge 4 commits from (deleted):specify-expiry-and-urllen into main
Showing only changes of commit c5b8dbdedd - Show all commits

View File

@ -276,6 +276,11 @@ func main() {
return nil
})
// Create the files directory if it doesn't already exist
if _, err := os.Stat(conf.FileFolder); os.IsNotExist(err) {
os.Mkdir(conf.FileFolder, 0755)
}
r := mux.NewRouter()
r.HandleFunc("/", UploadHandler).Methods("POST")
r.HandleFunc("/uploads/{name}", func(w http.ResponseWriter, r *http.Request) {