wgetpaste icon indicating copy to clipboard operation
wgetpaste copied to clipboard

prevent exceeding post limits

Open petaflot opened this issue 2 years ago • 2 comments

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.

petaflot avatar Jan 25 '23 17:01 petaflot

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 avatar Jan 26 '23 03:01 xxc3nsoredxx

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.

xxc3nsoredxx avatar Feb 09 '23 06:02 xxc3nsoredxx