Posted Fri, 12 Jan 2018 11:11:17 GMT in reply to Arun Chandrasekaran
On Tue, 09 Jan 2018 22:30:09 GMT, Arun Chandrasekaran wrote:
I'm trying to use evaluate vibe.d for streaming data upload of a large file from a http client either directly to memory and/or to filesystem on vibe.d server.
Is there any example that I can start with?
I asked this on Github. Not sure if anyone saw it.
Thanks for your help.
Sorry for the late reply, I missed the GH ticket. So currently uploads will always be stored in a temporary file. A new API needs to be added to enable custom streams as targets.
However, the built-in form parser can be disabled by skipping the
HTTPServerOption.parseForm flag in older versions, or by simply not accessing the
.files fields on the latest versions. Then you could use a modified version of the
parseMultipartFormPart functions to store the file body somewhere else (until there is an official solution implemented).