v2.0.0
Features
PicGo Server (Local HTTP API)
The local server has been rebuilt to be more robust and secure. It now supports automatic port detection and optional authentication, making it safer to run in shared environments.
How to use:
Simply run the following command to start the server:
picgo server
- Smart Port Management: By default, it uses port
36677. If the port is busy, PicGo will intelligently detect if another PicGo instance is running and reuse it, or automatically find the next available port. - Upload Endpoint: Send
POST /uploadrequests with:- JSON body:
{ "list": ["/path/to/image.png"] }. if list is not provided, it will upload images from the clipboard. - Multipart form-data:
filesfield.
- JSON body:
- Health Check:
POST /heartbeatto check server status.
Security & Authentication:
You can now protect your upload server with a secret token.