Skip to main content

Typora+upgit+tcyun: upload img to imgbed

B4nightLess than 1 minute

Typora+upgit+tcyun: upload img to imgbed

The image we insert to typora can be uploaded to tcyun(or other server) via upgit. All we need to do is several operations.

  1. Set typora options
image-20240205132414965
image-20240205132414965
  1. download upgit

Download link: https://github.com/pluveto/upgit/releasesopen in new window

  1. edit upgit config

Edit ~/.upgit.config.toml

config template: https://github.com/pluveto/upgit/blob/main/config.sample.tomlopen in new window

My config is below:

# UPGIT Config

default_uploader = "qcloudcos"

rename = "{year}/{month}/upgit_{year}{month}{day}_{unix_ts}{ext}"

# Qcloudcos Uploader
[uploaders.qcloudcos]
host = "xxx.cos.ap-nanjing.myqcloud.com"
secret_id = "xxx"
secret_key = "xxx"

4. Enter upgit path in typora and test

image-20240205132439704
image-20240205132439704
image-20240205132449714
image-20240205132449714
Last update:
Contributors: b4night