mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
!1000 【feature】- 优化代码-UploadFile#write(File)
Merge pull request !1000 from adeng/v6-dev
This commit is contained in:
commit
2e48d51794
@ -96,7 +96,7 @@ public class UploadFile {
|
|||||||
public File write(File destination) throws IOException {
|
public File write(File destination) throws IOException {
|
||||||
assertValid();
|
assertValid();
|
||||||
|
|
||||||
if (destination.isDirectory() == true) {
|
if (destination.isDirectory()) {
|
||||||
destination = new File(destination, this.header.getFileName());
|
destination = new File(destination, this.header.getFileName());
|
||||||
}
|
}
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user