Remove file deletion logic for rejected uploads

This commit is contained in:
2025-05-26 21:00:06 +08:00
parent b61027defd
commit f3eb79b3fa

View File

@@ -507,7 +507,6 @@ func CreateServerDownloadTask(uid uint, url, filename, description string, resou
if contentLength+getUploadingSize() > config.MaxUploadingSize() { if contentLength+getUploadingSize() > config.MaxUploadingSize() {
log.Info("A new downloading file is rejected due to max uploading size limit") log.Info("A new downloading file is rejected due to max uploading size limit")
_ = dao.DeleteFile(file.UUID)
return nil, model.NewRequestError("server is busy, please try again later") return nil, model.NewRequestError("server is busy, please try again later")
} }