We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c20070 commit 4529c33Copy full SHA for 4529c33
examples/client-upload/index.html
@@ -39,7 +39,7 @@
39
$.getJSON('http://localhost:9000/policy.php?save_path=' + save_path, function (data) {
40
var uploadData = new FormData($('#demoForm')[0]);
41
uploadData.append('policy', data.policy);
42
- uploadData.append('signature', data.signature);
+ uploadData.append('authorization', data.authorization);
43
$.ajax({
44
url: '//v0.api.upyun.com/sdkimg',
45
type: 'POST',
examples/client-upload/policy.php
@@ -10,6 +10,7 @@
10
$data['save-key'] = $_GET['save_path'];
11
$data['expiration'] = time() + 120;
12
$policy = Signature::getFormSignature($config, $data);
13
+$policy['authorization'] = 'UPYUN ' . USER_NAME . ':' . $policy['signature'];
14
echo json_encode($policy);
15
16
0 commit comments