Upload files bypassing your server directly to the cloud storage, can now be implemented?

Source: Internet
Author: User
Upload files bypassing your server directly to the cloud storage, can now be implemented?


Reply to discussion (solution)

It is not possible, the data of the uploaded file is packaged in the HTTP packet, and the PHP program does not start until after the HTTP packet has been unpacked
If you are calling the cloud storage client directly on the client, then there is no half-penny relationship with PHP.

You want to talk about the API? See if the merchant offering cloud storage has the API to give you direct transfer directly to that side.

Can only be uploaded to their servers to sync to the cloud and then delete

Theoretically, there is only one possible way to use the HTML and JS of the client browser to pass the file directly to the server in another domain, that is, the cloud, but this is cross-domain, the browser will be banned. But you can try it across domains.

You see the cloud support does not support the upload after the jump back, and give you information

  • 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.