On Thursday, 8 December 2016 at 00:44:19 UTC, Sönke Ludwig wrote:
Am 06.12.2016 um 23:28 schrieb aberba:
https://aberba.github.io/2016/form-upload-in-vibe-d/
Nice article, I'll add this to the tutorials section [1]. Two
additional suggestions:
- It's probably a good idea to mention that
HTTPServerSettings.maxRequestSize is 2 MiB by default and
should be increased if larger files are expected
- The last snippet with "static this()" (using "shared static
this" would be better to avoid issues in multi-threaded
applications) doesn't contain the /upload route, but it's
probably better to have it either there or later within the
text, as it may not be obvious how to register that exactly
[1]: https://vibed.org/tutorials
Done! Thanks for the feedback.