MultipartFormData

play.api.mvc.MultipartFormData
See theMultipartFormData companion class

Defines parts handled by Multipart form data.

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class BadPart(headers: Map[String, String]) extends Part[Nothing]

A part that has not been properly parsed.

A part that has not been properly parsed.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Part[Nothing]
class Object
trait Matchable
class Any
Show all
case class DataPart(key: String, value: String) extends Part[Nothing]

A data part.

A data part.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Part[Nothing]
class Object
trait Matchable
class Any
Show all
case class FilePart[A](key: String, filename: String, contentType: Option[String], ref: A, fileSize: Long, dispositionType: String, refToBytes: A => Option[ByteString]) extends Part[A]

A file part.

A file part.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Part[A]
class Object
trait Matchable
class Any
Show all
case class MaxMemoryBufferExceeded(message: String) extends Part[Nothing]

The multipart/form-data parser buffers many things in memory, including data parts, headers, file names etc.

The multipart/form-data parser buffers many things in memory, including data parts, headers, file names etc.

Some buffer limits apply to each element, eg, there is a buffer for headers before they are parsed. Other buffer limits apply to all in memory data in aggregate, this includes data parts, file names, part names.

If any of these buffers are exceeded, this will be emitted.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Part[Nothing]
class Object
trait Matchable
class Any
Show all
case class ParseError(message: String) extends Part[Nothing]

Emitted when the multipart stream can't be parsed for some reason.

Emitted when the multipart stream can't be parsed for some reason.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait Part[Nothing]
class Object
trait Matchable
class Any
Show all
sealed trait Part[+A]

A part.

A part.

Type parameters

A

the type that file parts are exposed as.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class BadPart
class DataPart
class FilePart[A]
class ParseError

Inherited types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror