金山云 php版 s3

这是金山云的网页端上传文件的开发代码

需要使用金山云的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
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值