Home  >  Article  >  Backend Development  >  How SAE implements file upload

How SAE implements file upload

WBOY
WBOYOriginal
2016-08-04 09:20:49992browse

Now there is such a business. I need to upload pictures to Qiniu Cloud.

Pictures are pictures from other websites

I use curl to download these pictures, save them locally, and then transfer them to Qiniu Cloud.

However, due to permission issues (the default permissions of sae), I cannot temporarily save the pictures obtained by curl on sae first.

So I can’t pass to Qiniu Cloud.

Excuse me, how should I solve it?

Reply content:

Now there is such a business. I need to upload pictures to Qiniu Cloud.

Pictures are pictures from other websites

I use curl to download these pictures, save them locally, and then upload them to Qiniu Cloud.

However, due to permission issues (the default permissions of sae), I cannot temporarily save the pictures obtained by curl on sae first.

So I can’t pass to Qiniu Cloud.

Excuse me, how should I solve it?

hi, you can call Qiniu’s fetch api interface
http://developer.qiniu.com/code/v6/api/kodo-api/rs/fetch.html

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn