formData

Helper to create form elements from File.

  1. auto formData(string name, File f, string[string] parameters)
    formData
    (
    string name
    ,
    File f
    ,
    string[string] parameters = null
    )
  2. auto formData(string name, ubyte[] b, string[string] parameters)
  3. auto formData(string name, string b, string[string] parameters)

Parameters

name string

name of the field in form

f File

opened std.stio.File to send to server

parameters string[string]

optional parameters (most important are "filename" and "Content-Type")

Meta