2 pan235467 pan235467 于 2015.06.19 10:49 提问

批量上传出问题FileUtils.copyFile(files[i], file2);

报错代码:
2015/06/19 10:44:41 ERROR .opensymphony.xwork2.interceptor.ExceptionMappingInterceptor error Failed to copy full contents from 'C:\Users\PXX.IntelliJIdea13\system\tomcat\Unnamed_general_8\work\Catalina\localhost\general\upload__573e38f3_14e09b313ca__7fc3_00000002.tmp' to 'E:\upload\goods\big\0000000.jpg'
java.io.IOException: Failed to copy full contents from 'C:\Users\PXX.IntelliJIdea13\system\tomcat\Unnamed_general_8\work\Catalina\localhost\general\upload__573e38f3_14e09b313ca__7fc3_00000002.tmp' to 'E:\upload\goods\big\0000000.jpg'

1个回答

bulusli3
bulusli3   Ds   Rxr 2015.06.19 11:03

进入FileUtils.copyFile的源码,分析一下报该错误的条件,然后看看自己的代码是否有问题。

Csdn user default icon
上传中...
上传图片
插入图片