mirror of
https://github.com/zfile-dev/zfile.git
synced 2026-08-30 17:47:31 +08:00
修复某些 webdav 服务器上传文件时文件大小必传导致上传失败的 bug
This commit is contained in:
@@ -178,7 +178,7 @@ public class WebdavServiceImpl extends AbstractProxyTransferService<WebdavParam>
|
||||
public void uploadFile(String pathAndName, InputStream inputStream) {
|
||||
try {
|
||||
pathAndName = getRequestPath(pathAndName);
|
||||
sardine.put(pathAndName, inputStream);
|
||||
sardine.put(pathAndName, inputStream, null, true, inputStream.available());
|
||||
} catch (IOException e) {
|
||||
throw ExceptionUtil.wrapRuntime(e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user