06 Jun 2021 17:32:08 UTC
- Distribution: Dancer2
- Module version: 0.301004
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (122)
- Testers (790 / 3 / 0)
- KwaliteeBus factor: 3
- 84.81% Coverage
- License: perl_5
- Activity24 month
- Download (391.12KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:78 non-PAUSE usersCROMEDOME Jason A. Cromeand 1 contributors
- Dancer Core Developers
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
- SEE ALSO
- COPYRIGHT AND LICENSE
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) 2021 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.