Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FTP、SFTP等需要后台中转的存储方式上传时流未关闭导致临时文件清理失败 #712

Open
vincexjl opened this issue Jan 23, 2025 · 0 comments

Comments

@vincexjl
Copy link

环境信息

  • ZFile 版本:4.1.5
  • 涉及存储源:FTP
  • 部署方式:源码启动
  • 操作系统/设备:Windows
  • 浏览器/版本号:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

复现步骤

配置好FTP、SFTP等存储源选择文件上传。此外ftp上传时的父目录用String folderName = FileUtil.getParent(fullPath, 1);也有问题

预期结果

正常上传且成功清理临时文件

实际结果

清理临时文件失败

额外信息

ftp上传时需修改

Image

上传controller需修改为

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant