Host Typecho Images on Qiniu Cloud Without Plugins
Typecho has a third-party plugin that uses the Qiniu SDK to automatically sync uploaded images to Qiniu, but this plugin sometimes fails to upload, possibly due to Qiniu API issues or plugin bugs. This article shares a method to automatically replace Typecho article images with Qiniu addresses without plugins, achieving image hosting.
Registration and real-name authentication for Qiniu are omitted. Visit the Qiniu official website: http://www.qiniu.com/. First, create a bucket (space). As shown below, I have created a space named typecho, then set up mirror storage with your blog address (http://faq.xiaoz.me/) as the mirror source, and finally save the settings.

Find the test domain assigned by Qiniu for your current space, or bind your own domain, which will be needed later. As shown in the screenshot below, I have bound the domain img.xiaoz.me to the typecho space.

Locate the article page file in your Typecho theme directory, specifically the post.php file. Find the following code:
<?php $this->content(); ?>
Replace it with:
<?php echo $str = str_replace("faq.xiaoz.me/usr/uploads","img.xiaoz.me/usr/uploads",$this->content); ?>
Here, faq.xiaoz.me is your blog's domain, and img.xiaoz.me is the domain bound to your Qiniu space, or you can use the test domain assigned by Qiniu. The principle of this method is that Qiniu supports mirror storage; after setting the mirror source, when you access the Qiniu address, it will automatically fetch the corresponding file from the source address without needing an SDK.