Limiting file upload to less 1MB?

Hi guys,

Is there a way to limit uploads to < 1MB files? If I run the following config to only accept files of 100kb max:

--server.maxUploadSize 0.1

… I expectedly get an error as it currently only accepts integers

Any workaround for this?

Thanks,
Charly

I don’t know, but I suspect this would be a pretty easy fix to incorporate. What use case are you imagining where the difference between 1MB and 100KB is meaningful?

1 Like

Thanks Randy. The Bulk HTTP checker I’m building for instance (similar to this: https://httpstatus.io/)

I would want to limit results to 1000 URLs, for speed’s sake. (1k URLs being equal to 0.2MB)

Thanks,
Charly

Are you reading the file using pandas? If so, you could read the first 1000 rows, which could functionally get you a similar result.

Thanks Randy, I like the workaround!

So β€œnrows=1000” as a parameter, and a cautionary message that only the 1st 1000 will be reviewed :slight_smile:

Cheers!

1 Like