Build Your Own Image Hosting Tool with UpYun and ShareX

upyunshareximage hostingftp uploadscreenshot tool
Published·Modified·

UpYun is a domestic CDN service provider offering object storage and CDN services, similar to Qiniu Cloud Storage. ShareX, a tool introduced in the article Screenshot Sharing Tool ShareX, can automatically upload screenshots to FTP. By using UpYun's FTP functionality, you can create a perfect combination for your image hosting tool.

1. Preparation

2. Create a Service

  • After registering with UpYun, go to the backend, create a service, and set up a global acceleration service. Follow the screenshot below for guidance.
  • Service Name: Enter any name.
  • Origin Server Type: Select UpYun.
  • Operator Account and Password: Remember these credentials as they will be needed later.
  • Permissions: Check all options.

Create Service (Click to enlarge)

3. Get FTP Information

UpYun allows file management via FTP tools. For more details, refer to the FTP/FTPS documentation. If your local network is Telecom, the FTP information will be:

FTP Address: v1.ftp.upyun.com Account: test/xiaozpic Password: Operator password

4. Configure ShareX

Open the ShareX panel, navigate to Upload To... > Upload Settings.

ShareX Settings

  • Enter the FTP information obtained in Step 3.
  • SubFolderPath: Specify the upload path (can be arbitrary).
  • BrowserProtocol: Choose HTTP or HTTPS.
  • HttpHomePath: Enter the subdomain or custom domain assigned by UpYun (ensure it ends with a /).
  • Click Test. If no errors occur, the information is correct; otherwise, recheck your inputs.

Test Configuration

Set Hotkeys

Go to Hotkey Settings > Add and configure as follows:

Hotkey Settings

Configure Actions

Set the action to automatically upload screenshots to FTP after capturing. Save the settings:

Action Settings

Finally, press the configured hotkey. After taking a screenshot, the image will be automatically uploaded to UpYun FTP, and the URL will be copied to the clipboard. You can paste it using Ctrl + V.

5. Summary

For those unfamiliar with UpYun, the process involving services and FTP might seem complex at first. However, by carefully reading the reference documentation, it becomes straightforward. ShareX offers extensive functionality, including customizable hotkeys and multiple actions. The combination of UpYun and ShareX perfectly实现了 a private image hosting solution. Both UpYun and ShareX have far more features than demonstrated here; feel free to explore further.

This article is an original work by XiaoZ Blog. Please credit the source if reposting.

If you prefer a simpler solution, visit XiaoZ Image Hosting.