Browse Source

Update filer_server_handlers_write_autochunk.go

add filer post file out fid
Sometimes we need filer server for file management, and we also need fid for direct access and bypass the filer server, I think fid output is necessary
pull/2136/head
JustTestCode 5 years ago
parent
commit
4c1145bbb1
  1. 6
      weed/server/filer_server_handlers_write_autochunk.go

6
weed/server/filer_server_handlers_write_autochunk.go

@ -208,10 +208,14 @@ func (fs *FilerServer) saveMetaData(ctx context.Context, r *http.Request, fileNa
return
}
entry.Chunks = mergedChunks
var fids []string
for _, value := range entry.Chunks {
fids = append(fids, value.FileId)
}
filerResult = &FilerPostResult{
Name: fileName,
Size: int64(entry.FileSize),
Fid: strings.Join(fids, "|"),
}
if entry.Extended == nil {

Loading…
Cancel
Save