Remove dead media cleanup flag. Closes #1423.

This commit is contained in:
Kailash Nadh 2023-08-03 23:35:21 +05:30
parent a440b79530
commit e89b9ffb30

View file

@ -62,7 +62,6 @@ func handleUploadMedia(c echo.Context) error {
fName, err = app.media.Put(fName, contentType, src)
if err != nil {
app.log.Printf("error uploading file: %v", err)
cleanUp = true
return echo.NewHTTPError(http.StatusInternalServerError,
app.i18n.Ts("media.errorUploading", "error", err.Error()))
}