diced / zipline

A ShareX/file upload server that is easy to use, packed with features, and with an easy setup!

Home Page:https://zipline.diced.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: `/api/upload` always returns 200

RappyTV opened this issue · comments

What happened?

The route always returns 200 and puts the real status code in the body. I would really appreciate if you could return the real status code and also if you'd capitalize the error messages :)

Version

latest (ghcr.io/diced/zipline or ghcr.io/diced/zipline:latest)

What browser(s) are you seeing the problem on?

No response

Zipline Logs

No response

Browser Logs

No response

Additional Info

No response

Seems fine to me, here are some examples: (putting in values that will cause a non OK status)
image
image

hmm weird, some days ago i had a 200 status code but a 400 code in the body, I unfortunately don't have a screenshot. but it's fine because it works now. but what about the lowercase errors? I use the api for a custom uploader and it just does not look pretty when the error messages are not capitalized.

i don't really care if it looks pretty or not, its not a priority lol