How to save uploaded images to another server

Source: Internet
Author: User
Many large websites use second-level domain names to call images. If the files bound to the second-level domain name and the primary domain name are not on the same server, what if I save the image uploaded from the primary domain name address to the second-level domain name binding file and return an absolute address? Many large websites use second-level domain names to call images.
If the files bound to the second-level domain name and the primary domain name are not on the same server, what if I save the image uploaded from the primary domain name address to the second-level domain name binding file and return an absolute address?

Reply content:

Many large websites use second-level domain names to call images.
If the files bound to the second-level domain name and the primary domain name are not on the same server, what if I save the image uploaded from the primary domain name address to the second-level domain name binding file and return an absolute address?

Does segmentfault do this? When you upload an image and call the upyun api image to upload it to upyun, a url is returned and finally presented to the user. This is the CDN url ~
Http://sfault-avatar.b0.upaiyun.com/405/397/4053973633-561483bccecdd_big64

How can I save it to another server.
First, you can have the same or different domains for different servers.
(Enter it later)

You can directly send the image encoding to the corresponding server interface and save the image as a file on the server.

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.