Browse Source

minor

pull/3534/head
chrislu 2 years ago
parent
commit
3741779144
  1. 2
      weed/server/filer_server_handlers_write_upload.go

2
weed/server/filer_server_handlers_write_upload.go

@ -105,7 +105,7 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque
}()
chunk, toChunkErr := fs.dataToChunk(fileName, contentType, bytesBuffer.Bytes(), offset, so)
if toChunkErr != nil {
if uploadErr == nil && toChunkErr != nil {
uploadErr = toChunkErr
}
if chunk != nil {

Loading…
Cancel
Save