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:
- Upload the original Avatar Image
- Click Save to generate an Avatar on the server where the website is located.
- 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:
- Upload the original Avatar Image
- Click Save to generate an Avatar on the server where the website is located.
- 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?