NAME

Prancer::Request::Upload

SYNOPSIS

Uploads come from the Prancer::Request object passed to your handler. They can be used like this:

    # in your HTML
    <form method="POST" enctype="multipart/form-data">
        <input type="file" name="foobar" />
    </form>

    # in the Prancer handler
    my $upload = $request->upload("foo");

METHODS

size

Returns the size of uploaded file.

path

Returns the path to the temporary file where uploaded file is saved.

content_type

Returns the content type of the uploaded file.

filename

Returns the original filename in the client.