Prancer::Request::Upload(3)

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 = context->upload('foo');
    my $upload = context->request->upload('bar');
    $upload->size();
    $upload->path();
    $upload->content_type();
    $upload->filename();
    $upload->basename();

ATTRIBUTES

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.

basename
    Returns basename for "filename".