remove comment
All checks were successful
Build Slideshow App / build (amd64, .exe, windows) (push) Successful in 1m59s
Build Slideshow App / build (amd64, , linux) (push) Successful in 2m15s
Build Slideshow App / build (arm, 7, , linux) (push) Successful in 2m4s
Build Slideshow App / build (arm64, , linux) (push) Successful in 2m4s
All checks were successful
Build Slideshow App / build (amd64, .exe, windows) (push) Successful in 1m59s
Build Slideshow App / build (amd64, , linux) (push) Successful in 2m15s
Build Slideshow App / build (arm, 7, , linux) (push) Successful in 2m4s
Build Slideshow App / build (arm64, , linux) (push) Successful in 2m4s
This commit is contained in:
@@ -73,7 +73,7 @@ func DeleteHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
// 2. Delete each file
|
||||
for _, name := range filenames {
|
||||
fullPath := filepath.Join(uploadDir, filepath.Base(name)) // Base() for security
|
||||
fullPath := filepath.Join(uploadDir, filepath.Base(name))
|
||||
os.Remove(fullPath)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user