Skip to content

Commit 6435db7

Browse files
committed
Merge pull request #112 from simon-liubin/update/IO_putFile_overload
重载putFile方法
2 parents 4508678 + e75974a commit 6435db7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/qiniu/api/io/IoApi.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,10 @@ public static PutRet Put(String uptoken,String key,InputStream reader,PutExtra e
134134

135135
public static PutRet putFile(String uptoken, String key, String fileName, PutExtra extra) {
136136
File file=new File(fileName);
137+
return putFile(uptoken, key, file, extra);
138+
}
139+
140+
public static PutRet putFile(String uptoken, String key, File file, PutExtra extra) {
137141
if (extra.checkCrc == AUTO_CRC32) {
138142
try {
139143
extra.crc32 = getCRC32(file);

0 commit comments

Comments
 (0)