OnDiskFileParamHolder

olon.http.OnDiskFileParamHolder
See theOnDiskFileParamHolder companion object
class OnDiskFileParamHolder(val name: String, val mimeType: String, val fileName: String, val localPath: Path) extends FileParamHolder

This FileParamHolder stores the uploaded file in a temporary file on disk.

Value parameters

fileName

The local filename on the client

localFile

The local copy of the uploaded file

mimeType

the mime type, as specified in the Content-Type field

name

The name of the form field for this file

Attributes

Companion
object
Graph
Supertypes
trait ParamHolder
trait Serializable
class Object
trait Matchable
class Any
Show all

Members list

Value members

Constructors

def this(name: String, mimeType: String, fileName: String, localFile: File)

Concrete methods

def file: Array[Byte]

Returns the contents of the uploaded file as a Byte array.

Returns the contents of the uploaded file as a Byte array.

Attributes

def fileStream: InputStream

Returns an input stream that can be used to read the contents of the uploaded file.

Returns an input stream that can be used to read the contents of the uploaded file.

Attributes

def length: Long

Returns the length of the uploaded file.

Returns the length of the uploaded file.

Attributes

def localFile: File

Concrete fields

override val fileName: String
val localPath: Path
override val mimeType: String
override val name: String