simple-http-server icon indicating copy to clipboard operation
simple-http-server copied to clipboard

Is it possible to provide units for the "-l" parameter?

Open weikychen opened this issue 2 years ago • 2 comments

--upload-size-limit The default setting is in bytes, but when uploading large files, it's inconvenient to set a large number of bytes. I hope to carry the letters k, m, g after the number, so as to define the file size limit for uploading. For example, 10m, for example, 1g.

weikychen avatar Feb 06 '23 02:02 weikychen

how did you implement the size limit?

CDSWambo avatar Oct 24 '23 15:10 CDSWambo

hopefully metric/binary prefix will be implemented in future versions. or temporarily disable size limt

yoshyv avatar Mar 03 '24 20:03 yoshyv