The OpenD Programming Language

formData

Helper to create form elements from ubyte[].

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

Parameters

name string

name of the field in form

b ubyte[]

data to send to server

parameters string[string]

optional parameters (can be "filename" and "Content-Type")

Meta