Fix for bug #138

This commit is contained in:
Markus Kienast 2017-07-13 00:45:10 +02:00
parent ba0f004df7
commit 55da6bbbf7
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ func (store S3Store) NewUpload(info tusd.FileInfo) (id string, err error) {
var uploadId string var uploadId string
if info.ID == "" { if info.ID == "" {
uploadId = uid.Uid() uploadId = uid.Uid()
info.ID = uploadId
} else { } else {
uploadId = info.ID uploadId = info.ID
} }