Skip to content

Commit 1577f3b

Browse files
authored
Merge pull request #282 from breeze2/master
upload file with 'x-qn-meta-' params
2 parents 628b418 + 809d816 commit 1577f3b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Qiniu/Storage/UploadManager.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ public static function trimParams($params)
133133
}
134134
$ret = array();
135135
foreach ($params as $k => $v) {
136-
$pos = strpos($k, 'x:');
137-
if ($pos === 0 && !empty($v)) {
136+
$pos1 = strpos($k, 'x:');
137+
$pos2 = strpos($k, 'x-qn-meta-');
138+
if (($pos1 === 0 || $pos2 === 0) && !empty($v)) {
138139
$ret[$k] = $v;
139140
}
140141
}

0 commit comments

Comments
 (0)