How can I store the discuz Avatar directly to qiniu or yuyun?

Source: Internet
Author: User
At present, the logic of discuz is to upload the original picture of an avatar and click Save to generate an Avatar. The original picture will be automatically deleted on the server where the website is located. Now I want to save the Avatar image directly to qiniu, however, the source image is only saved on the local server, because the source image is only a temporary file and placed on the local server... the logic of discuz is as follows:

  1. Upload the original Avatar Image
  2. Click Save to generate an Avatar on the server where the website is located.
  3. The original Avatar image is automatically deleted.

Now I want to save the Avatar image directly to qiniu, but the source image is only saved on the local server, because the source image is only a temporary file and will not be affected if it is placed on the local server, if the source image is uploaded to qiniu, a large amount of traffic fees may be incurred.

However, discuz's remote attachment function is only for uploading images in the post, not for profile pictures. How can I modify it to implement the above functions?

Reply content:

The logic of discuz is as follows:

  1. Upload the original Avatar Image
  2. Click Save to generate an Avatar on the server where the website is located.
  3. The original Avatar image is automatically deleted.

Now I want to save the Avatar image directly to qiniu, but the source image is only saved on the local server, because the source image is only a temporary file and will not be affected if it is placed on the local server, if the source image is uploaded to qiniu, a large amount of traffic fees may be incurred.

However, discuz's remote attachment function is only for uploading images in the post, not for profile pictures. How can I modify it to implement the above functions?

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.