mtlynch / picoshare

A minimalist, easy-to-host service for sharing images and other files
https://demo.pico.rocks
Other
2.3k stars 165 forks source link

Why the guest upload api returns uncertain responses? #596

Open XiaoQiu2451 opened 1 month ago

XiaoQiu2451 commented 1 month ago

Hello, I tried to use it as the main Image Host Service in my project. Then I found a problem that the guest upload api returns uncertain responses. Sometimes it returns JSON-like {'id': '...'}, sometimes it returns HTTP_URL like http://127.0.0.1:4001/-... I am confused why it is designed in this way which has no any adventage for development. And also, I think it will be better of this project to have a more clear API documents for development.

mtlynch commented 1 month ago

Can you share the steps that reproduce this behavior?

And also, I think it will be better of this project to have a more clear API documents for development.

The project doesn't have a stable API, as it's a hobby project I work on for fun in my spare time.