Dancer2::Core::Request::Upload - Class representing file upload requests
This class implements a representation of file uploads for Dancer2. These objects are accessible within route handlers via the request->uploads keyword. See Dancer2::Core::Request for details.
Filename as sent by client. optional. May not be undef.
The name of the temporary file the data has been saved to. Optional. May not be undef.
A hash ref of the headers associated with this upload. optional. is read-write and a HashRef.
The size of the upload, in bytes. Optional.
Returns the filename (full path) as sent by the client.
Returns the name of the temporary file the data has been saved to.
For example, in directory /tmp, and given a random name, with no file extension.
Returns a hashRef of the headers associated with this upload.
Returns a read-only file handle on the temporary file.
Copies the temporary file using File::Copy. Returns true for success, false for failure.
Creates a hard link to the temporary file. Returns true for success, false for failure.
Returns a scalar containing the contents of the temporary file.
Returns basename for "filename".
Returns the Content-Type of this upload.
Dancer Core Developers
This software is copyright (c) 2016 by Alexis Sukrieh.