From d83e85b6bb6363d8e7506b60ccacb3f8d9fc3a16 Mon Sep 17 00:00:00 2001 From: zhaojun <873019219@qq.com> Date: Wed, 23 Apr 2025 20:30:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=9F=90=E4=BA=9B=20webdav?= =?UTF-8?q?=20=E6=9C=8D=E5=8A=A1=E5=99=A8=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E6=96=87=E4=BB=B6=E5=A4=A7=E5=B0=8F=E5=BF=85?= =?UTF-8?q?=E4=BC=A0=E5=AF=BC=E8=87=B4=E4=B8=8A=E4=BC=A0=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E7=9A=84=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zfile/module/storage/service/impl/WebdavServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/im/zhaojun/zfile/module/storage/service/impl/WebdavServiceImpl.java b/src/main/java/im/zhaojun/zfile/module/storage/service/impl/WebdavServiceImpl.java index 3c9eab9..27e4233 100644 --- a/src/main/java/im/zhaojun/zfile/module/storage/service/impl/WebdavServiceImpl.java +++ b/src/main/java/im/zhaojun/zfile/module/storage/service/impl/WebdavServiceImpl.java @@ -178,7 +178,7 @@ public class WebdavServiceImpl extends AbstractProxyTransferService 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); }