This commit is contained in:
chrislu 2022-08-27 00:20:58 -07:00
parent 580a7fa685
commit 3741779144

View file

@ -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 {