Skip to content

Commit fe43efd

Browse files
committed
upload file with 'x-qn-meta-' params
upload file with 'x-qn-meta-' params
1 parent 4c4f9b8 commit fe43efd

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)