|
@@ -845,8 +845,9 @@ func CompleteMultipart(ctx *context.Context) { |
|
|
ctx.Error(500, fmt.Sprintf("InsertAttachment: %v", err)) |
|
|
ctx.Error(500, fmt.Sprintf("InsertAttachment: %v", err)) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
notification.NotifyUploadAttachment(ctx.User, ctx.Repo.Repository, attachment) |
|
|
|
|
|
|
|
|
dataset, _ := models.GetDatasetByID(attachment.DatasetID) |
|
|
|
|
|
repository, _ := models.GetRepositoryByID(dataset.RepoID) |
|
|
|
|
|
notification.NotifyUploadAttachment(ctx.User, repository, attachment) |
|
|
|
|
|
|
|
|
if attachment.DatasetID != 0 { |
|
|
if attachment.DatasetID != 0 { |
|
|
if isCanDecompress(attachment.Name) { |
|
|
if isCanDecompress(attachment.Name) { |
|
@@ -867,7 +868,6 @@ func CompleteMultipart(ctx *context.Context) { |
|
|
labelmsg.SendDecompressAttachToLabelOBS(string(attachjson)) |
|
|
labelmsg.SendDecompressAttachToLabelOBS(string(attachjson)) |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
dataset, _ := models.GetDatasetByID(attachment.DatasetID) |
|
|
|
|
|
var labelMap map[string]string |
|
|
var labelMap map[string]string |
|
|
labelMap = make(map[string]string) |
|
|
labelMap = make(map[string]string) |
|
|
labelMap["UUID"] = uuid |
|
|
labelMap["UUID"] = uuid |
|
|