Commit e1f4cdb4 authored by Quentin Smith's avatar Quentin Smith

storage/app: fix merge error in upload.go

Change-Id: I6220ec86c80c07899b1e511753a07da54e5e7bbd
Reviewed-on: https://go-review.googlesource.com/35153Reviewed-by: default avatarRuss Cox <rsc@golang.org>
parent 207c7c5a
......@@ -117,18 +117,18 @@ func (a *App) processUpload(ctx context.Context, user string, mr *multipart.Read
meta := map[string]string{
"uploadid": upload.ID,
"fileid": fmt.Sprintf("%s/%d", upload.ID, filenum),
"fileid": fmt.Sprintf("%s/%d", upload.ID, i),
"uploadtime": uploadtime,
}
name := p.FileName()
name = p.FileName()
if slash := strings.LastIndexAny(name, `/\`); slash >= 0 {
name = name[slash+1:]
}
if name != "" {
m["uploadfile"] = name
meta["uploadfile"] = name
}
if user != "" {
m["by"] = user
meta["by"] = user
}
// We need to do two things with the incoming data:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment