Home  >  Article  >  Backend Development  >  How to set up and parse the code of OSS's pc_web direct callback end

How to set up and parse the code of OSS's pc_web direct callback end

WBOY
WBOYOriginal
2016-08-04 09:19:371110browse

The thing is like this, I want to embed Alibaba Cloud's OSS web direct transfer function in my system, which means to transfer files directly to OSS without having to transfer them through my own server. According to the official document Web side direct transfer practice - —Server-side signature direct transmission and setting upload callback. I transplanted the official demo to my own system (using the Yii framework). After passing the test, I successfully uploaded the file to the OSS side. This also proves that I have everything else. There was no problem with the configuration, but one day later, when I used it again, I found that the following error was reportedHow to set up and parse the code of OSS's pc_web direct callback endIn fact, the reason was that my callback end was not processed well at the beginning. I directly used the address in the demo. There was an error in accessing the latter address. I discovered this problem. I looked at the document again and found that there was no detailed explanation of the callback end processing. It just gave a callback.php file and attached it. This sentence How to set up and parse the code of OSS's pc_web direct callback end made me confused. Forgive me for being a newbie. I hope someone with experience can tell me what to do when I get here? grateful! ! How to set up and parse the code of OSS's pc_web direct callback end

Reply content:

The thing is like this, I want to embed Alibaba Cloud's OSS web direct transfer function in my system, which means to transfer files directly to OSS without having to transfer them through my own server. According to the official document Web side direct transfer practice - —Server-side signature direct transmission and setting upload callback. I transplanted the official demo to my own system (using the Yii framework). After passing the test, I successfully uploaded the file to the OSS side. This also proves that I have everything else. There was no problem with the configuration, but one day later, when I used it again, I found that the following error was reported

In fact, the reason was that my callback end was not processed well at the beginning. I directly used the address in the demo. There was an error in accessing the latter address. I discovered this problem. I looked at the document again and found that there was no detailed explanation of the callback end processing. It just gave a callback.php file and attached it. This sentence How to set up and parse the code of OSS's pc_web direct callback end made me confused. Forgive me for being a newbie. I hope someone with experience can tell me what to do when I get here? grateful! ! How to set up and parse the code of OSS's pc_web direct callback endHow to set up and parse the code of OSS's pc_web direct callback end

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