java - APP端上传图片 如何在业务服务端存储相关图片地址或者key?
PHP中文网
PHP中文网 2017-04-18 09:06:27
0
2
462

我看了七牛官网的这个业务交互图,有几个地方不明白,请指教一下,谢谢!

1.APP从业务服务器拿到的凭证指的就是token吧?

2.APP上传图片到七牛服务器,那么七牛的返回结果中都包含哪些信息?

3.这个交互图中是不是少了一个步骤,APP上传图片之后,如果想要下载这个图片的话要怎么办?是不是应该在上传成功之后要将文件的URL告知业务服务器才对?

4.如果我需要将APP上传成功后的返回结果存入到我的业务服务器的数据库中,以便后续的访问,那么我需要存储哪些信息到数据库中?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
Peter_Zhu

1. Yes
2. Return key and hash in json format, but this can be customized when generating the token
3. The download address is the temporary domain name of the bucket provided by Qiniu or the domain name you bind yourself+ key
4. Just save the key

Ty80

You can synchronize the uploaded information to your application server through the upload callback
June 4, 2016
13:34

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!