金山云 php版 s3

本文分享了使用金山云PHP SDK实现网页端文件上传的开发经验,详细介绍了如何利用ACCESSKEY和SECCERT进行身份验证,并成功上传了5GB的大文件,适合构建网页端上传功能,还可应用于博客文章的上传。
摘要由CSDN通过智能技术生成

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

需要使用金山云的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、付费专栏及课程。

余额充值