|
|
@ -70,7 +70,7 @@ func (fs *FilerServer) uploadReaderToChunks(w http.ResponseWriter, r *http.Reque |
|
|
|
return nil, md5Hash, 0, err, nil |
|
|
|
} |
|
|
|
if chunkOffset == 0 && !isAppend(r) { |
|
|
|
if dataSize < fs.option.SaveToFilerLimit || strings.HasPrefix(r.URL.Path, filer.DirectoryEtcRoot) && dataSize < 4*1024 { |
|
|
|
if dataSize < fs.option.SaveToFilerLimit || strings.HasPrefix(r.URL.Path, filer.DirectoryEtcRoot) { |
|
|
|
chunkOffset += dataSize |
|
|
|
smallContent = make([]byte, dataSize) |
|
|
|
bytesBuffer.Read(smallContent) |
|
|
|
xxxxxxxxxx