这是金山云的网页端上传文件的开发代码
需要使用金山云的ACCESSKEY 和 SCECERT
我使用5g的文件,上传成功了,haha
大家可以作为一个php 网页端
而且,可以直接写博客上传啊
<?php
# $access_id is your AccessId
# $access_key is your AccessSecretKey
# $key is upload filename
# $bucket_name is your bucketname
# $host is server address
# $url is $host/$bucketname
# $policy is the rule you make for customers
# $policy has success_action_redirect to allow your redirect your address
# $sign is credentials
# policy must include expiration and condition key, condition bucket
# form item except "KSSAccessKeyId", "Signature", "file", "Policy", "bucket", "key",
# must be include in the policy
$acc