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.