How to use the open-source program wecenter to use external qiniu as an image server

Source: Internet
Author: User
When I use wecenter as a website, I find that my ecs server is not large enough. If the uploaded images are large, access and resources will be exhausted, in the past, qiniu seems to be able to serve as an external image file server. I want you to help me implement this function, so that the pressure on my servers is lower... when I use wecenter as a website, I find that my ecs server is not large enough. If the uploaded images are large, access and resources will be exhausted, in the past, qiniu seems to be able to serve as an external image file server. I want you to help me implement this function, so that the pressure on my servers is lower. How can I implement it? Thank you!

Reply content:

When I use wecenter as a website, I find that my ecs server is not large enough. If the uploaded images are large, access and resources will be exhausted, in the past, qiniu seems to be able to serve as an external image file server. I want you to help me implement this function, so that the pressure on my servers is lower. How can I implement it? Thank you!

Upload the image to qiniu. Then qiniu will provide an external link and use the IMG external link on its own website.

Wecenter has never been used. The most important thing is that the topic root has not clearly stated what the Image Upload scenario is. Does it mean that users upload images to their own albums? Or is an image inserted by a short blog in the text editor?
If you want to upload an image to an album, you can split the code of the album by using sdks at http://developer.qiniu.com/docs/v6/sdk/php-sdk.html.
If you insert an image into the editor text, it may be a little troublesome. You need to check the editor code, which may involve JS Code. Corrected the original image upload code in the editor to directly upload images to qiniu through the editor. Similar to Baidu's ueditor + qiniu, the author can search for some content using this keyword.

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.