Guide to PHPCMS V9 HTTPS Setup (Fixed Image Upload Issue):
https://gitee.com/cnop/phpcms
File location: phpcms/libs/classes/attachment.class.php
The main change is adding HTTPS-related code. For detailed modifications, you can download the attachment to compare:

Attachment download: https://www.cnop.net/uploadfile/2019/0904/20190904115814330.zip