mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Remove file deletion logic for rejected uploads
This commit is contained in:
@@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user