Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

大佬,上传图片的服务器是怎么搞的? #25

Open
chelflan opened this issue Jul 31, 2019 · 2 comments
Open

大佬,上传图片的服务器是怎么搞的? #25

chelflan opened this issue Jul 31, 2019 · 2 comments

Comments

@chelflan
Copy link

No description provided.

@chelflan chelflan reopened this Jul 31, 2019
@chelflan
Copy link
Author

我看您的是使用七牛云,传图片过去就给你返回了一个网络地址。。没有使用过,请教请教

@lfb
Copy link
Owner

lfb commented Jul 31, 2019

我看您的是使用七牛云,传图片过去就给你返回了一个网络地址。。没有使用过,请教请教

是啊,我是使用七牛云的,你可以去七牛云申请一个储存空间。它上传的原理是:首先获取七牛的上传token,所以需要配置一下你申请的储存空间的key,然后上传时把上传的token和图片的数据发送过去后,七牛会返回一个图片的地址链接和图片key,把该key或者图片链接保存到数据库,就完成了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants