How to solve PHP cross-site File Upload

Source: Internet
Author: User

PHP cross-site File Upload

You can upload videos to A video website.

Website B wants to call website A's interface to upload videos. The two websites are not on the same server.

The UPLOADIFY plug-in used by website. How does one implement cross-site upload?

------ Solution --------------------

First of all, make sure that you can control site A and site B. You still want to use other websites to upload videos, but you do not want users to upload videos to other websites.

If a B is controllable, A can call an api B.

If A is A website of another person, such as youku, you want to upload the video to youku on your website and then get the video address.

In this case, you need to simulate logging on to youku and then upload the data through curl to obtain the returned value for analysis until the address or address is obtained.

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.