zlin / wgetpaste

MIT License
34 stars 16 forks source link

prevent exceeding post limits #41

Open petaflot opened 1 year ago

petaflot commented 1 year ago

I recently got blocked from dpaste.com ; I sent an e-mail to enquire as of why and the response was something like It looks like you were blocked for attempting to (wildly) exceed the maximum post size of 250K. They were really nice and removed the block once I asked.

This happened by mistake, probably using wgetpaste (forgive me if I'm wrong).

wgetpaste should not allow a user to (unknowingly) exceed post limits.

xxc3nsoredxx commented 1 year ago

This is something that I've thought of before, but from a different angle. Namely the "it's annoying when a paste mysteriously fails until you realize it's too large" one. My current idea is to find the size limits for each service (where applicable), and if the incoming paste is too large, automatically pick one where it'll fit.

Now that it looks like there's issues beyond a mere annoyance makes me think I should bump it up on my todo list...

xxc3nsoredxx commented 1 year ago

FYI, I've got a working implementation of this feature. Just need to go through and see if there's any cleanup still and also write a test script for it.