Skip to content

Commit 7ea0e1b

Browse files
committed
Update UploadManager.php
兼容直接调用put方法未指定fname时上传响应400的问题
1 parent c1867c2 commit 7ea0e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Qiniu/Storage/UploadManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function put(
4646
$data,
4747
$params = null,
4848
$mime = 'application/octet-stream',
49-
$fname = null
49+
$fname = "default_filename"
5050
) {
5151

5252
$params = self::trimParams($params);

0 commit comments

Comments
 (0)