MultipartForm

Constructors

this
this(string name, string filename, MultipartOptions options)
Undocumented in source.

Members

Functions

cleanUp
void cleanUp()

Only remove tmp files.

close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
getBytes
byte[] getBytes()
Undocumented in source. Be warned that the author may not have intended to support it.
getContentDispositionFilename
string getContentDispositionFilename()

Get the filename from the content-disposition.

getContentType
string getContentType()

@see Part#getContentType()

getFile
string getFile()

Get the file

getHeader
string getHeader(string name)

@see Part#getHeader(string)

getHeaderNames
string[] getHeaderNames()

@see Part#getHeaderNames()

getHeaders
Collection!string getHeaders(string name)

@see Part#getHeaders(string)

getInputStream
InputStream getInputStream()

@see Part#getInputStream()

getName
string getName()

@see Part#getName()

getSize
long getSize()

@see Part#getSize()

getSubmittedFileName
string getSubmittedFileName()

@see Part#getSubmittedFileName()

open
void open()
Undocumented in source. Be warned that the author may not have intended to support it.
remove
void remove()

Remove the file, whether or not Part.write() was called on it (ie no longer temporary)

setContentType
void setContentType(string contentType)
Undocumented in source. Be warned that the author may not have intended to support it.
setHeaders
void setHeaders(MultiMap!string headers)
Undocumented in source. Be warned that the author may not have intended to support it.
setTmpDir
void setTmpDir(string dir)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(int b)
Undocumented in source. Be warned that the author may not have intended to support it.
write
void write(byte[] bytes, int offset, int length)
Undocumented in source. Be warned that the author may not have intended to support it.
write
deprecated void write(string fileName)
Undocumented in source. Be warned that the author may not have intended to support it.
writeTo
void writeTo(string fileName, bool canOverwrite)

@see Part#write(string)

Inherited Members

From Part

getInputStream
InputStream getInputStream()

Gets the content of this part as an <tt>InputStream</tt>

getContentType
string getContentType()

Gets the content type of this part.

getName
string getName()

Gets the name of this part

getSubmittedFileName
string getSubmittedFileName()

Gets the file name specified by the client

getSize
long getSize()

Returns the size of this fille.

getFile
string getFile()
Undocumented in source.
getBytes
byte[] getBytes()
Undocumented in source.
writeTo
void writeTo(string fileName, bool canOverwrite)

A convenience method to write this uploaded item to disk.

write
deprecated void write(string fileName)
Undocumented in source.
flush
void flush()

Save the content to a temp file

remove
void remove()

Deletes the underlying storage for a file item, including deleting any associated temporary disk file.

getHeader
string getHeader(string name)

Returns the value of the specified mime header as a <code>string</code>. If the Part did not include a header of the specified name, this method returns <code>null</code>. If there are multiple headers with the same name, this method returns the first header in the part. The header name is case insensitive. You can use this method with any request header.

getHeaders
Collection!string getHeaders(string name)

Gets the values of the Part header with the given name.

getHeaderNames
string[] getHeaderNames()

Gets the header names of this Part.

toString
string toString()
Undocumented in source.

Meta