Files
typora-img-uploader-r2/readme.md
T
2025-02-20 18:59:53 +09:00

778 B

typora-img-uploader

Upload to R2

Upload images to R2 using Typora.

pip install python-dotenv boto3
.env

R2_ENDPOINT = 'https://your-endpoint-url'
R2_BUCKET_NAME= 'bucket name'
R2_ACCESS_KEY_ID = 'access key'
R2_SECRET_ACCESS_KEY = 'securet access key'
R2_CUSTOM_URL = 'https://custom.domain/'

Usage

upload_r2.py --images-path <image path>

Upload to DropBox

Upload images to Dropbox.

pip install dropbox python-dotenv
.env

DROPBOX_APP_KEY=your_app_key
DROPBOX_APP_SECRET=your_app_secret
DROPBOX_REFRESH_TOKEN=your_refresh_token

Required permissions:

  • files.content.write
  • files.content.read
  • sharing.write

Usage

upload_dropbox.py --images-path <image path>