vibe.d: How to get the conent of a file upload ?
igor.khasilev at gmail.com
Sat Sep 19 19:45:03 UTC 2020
On Saturday, 19 September 2020 at 18:56:20 UTC, Steven
> On 9/19/20 7:15 AM, ikod wrote:
>> On Saturday, 19 September 2020 at 11:11:21 UTC, ikod wrote:
>>> On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote:
>>> My preferable way to handle such thing is: convert incoming
>>> data into input range of immutable(ubyte) and let user to
>>> consume this range (and handle it as it wish - transform,
>>> store in memory as is, or dump to disk)
>> sorry, this looks exactly like it described in proposal (and
>> this is how requests works).
> You mean for each file, right? Yeah, that is the proposal,
If user uploads several files through single form then yes, for
each file. Maybe handler should receive range of input ranges and
handle each as necessary.
> though it uses Vibe's io type (necessary I think).
More information about the Digitalmars-d-learn