Seven cows upload video Why sometimes there is no callback?

Source: Internet
Author: User
Seven cows upload video Why sometimes there is no callback?

Reply content:

Seven cows upload video Why sometimes there is no callback?

From seven kn

Upload process
Note "", ()

在七牛云存储中,整个上传流程大体分为这样几步:    业务服务器颁发 上传凭证给客户端(终端用户)    客户端凭借 上传凭证 上传文件到七牛    在七牛获得完整数据后,发起一个 HTTP 请求回调到业务服务器    业务服务器保存相关信息,并返回一些信息给七牛    七牛原封不动地将这些信息转发给客户端(终端用户)需要注意的是,【回调到业务服务器的过程是(可选的)】,它取决于业务服务器颁发的 上传凭证。如果没有回调,七牛会返回一些标准的信息(比如文件的 hash)给客户端。如果上传发生在业务服务器,以上流程可以自然简化为:    业务服务器生成 uptoken(不设置回调,自己回调到自己这里没有意义)    凭借 上传凭证 上传文件到七牛    善后工作,比如保存相关的一些信息    服务端生成 上传凭证 代码如下:
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.