|
|
|
|
|
|
|
|
eFile := os.Remove(m.filePath()) |
|
|
eFile := os.Remove(m.filePath()) |
|
|
ePdf := os.Remove(m.pdfPath()) |
|
|
ePdf := os.Remove(m.pdfPath()) |
|
|
eThumb := os.Remove(m.thumbPath()) |
|
|
eThumb := os.Remove(m.thumbPath()) |
|
|
|
|
|
eJson := os.Remove(m.jsonPath()) |
|
|
eMeta := m.Upload.Delete() |
|
|
eMeta := m.Upload.Delete() |
|
|
|
|
|
|
|
|
strId := strconv.Itoa(int(m.Upload.Id)) |
|
|
strId := strconv.Itoa(int(m.Upload.Id)) |
|
|
|
|
|
|
|
|
errMsg += " thumb " |
|
|
errMsg += " thumb " |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if eJson != nil { |
|
|
|
|
|
errMsg += " json " |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if eMeta != nil { |
|
|
if eMeta != nil { |
|
|
errMsg += " Meta in DB " |
|
|
errMsg += " Meta in DB " |
|
|
e = errors.New(errMsg + " cannot be deleted " + strId) |
|
|
e = errors.New(errMsg + " cannot be deleted " + strId) |