vibe.d: How to get the conent of a file upload ?

Steven Schveighoffer schveiguy at gmail.com
Sat Sep 19 18:56:20 UTC 2020


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:
>>> On Friday, 18 September 2020 at 12:58:29 UTC, Steven Schveighoffer 
>>> wrote:
>>>> On 9/18/20 8:39 AM, Steven Schveighoffer wrote:
>>>>> But again, solved with an enhancement that allows you to process 
>>>>> the data in your code. I'll file the enhancement request for you, 
>>>>> as I think it's a nice addition.
>>>>
>>>> https://github.com/vibe-d/vibe.d/issues/2478
>>>>
>>>
>>> Awesome! Thanks a ton :)
>>
>> 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, though it 
uses Vibe's io type (necessary I think).

-Steve


More information about the Digitalmars-d-learn mailing list