The OpenD Programming Language

formData

Helper to create form elements from File.

  1. auto formData(string name, File f, string[string] parameters)
    formData
    (
    string name
    ,,
    string[string] parameters = null
    )
  2. auto formData(string name, ubyte[] 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