NAME

Yukki::Web::Controller::Attachment - Controller for uploading, downloading, and viewing attachments

VERSION

version 0.991_004

DESCRIPTION

Handles uploading, downloading, and viewing attachments.

METHODS

fire

Maps download requests to "download_file", upload requests to "upload_file", and view requestst to "view_file".

lookup_file

my $file = $self->lookup_file($repository, $path);

This is a helper for locating and returning a Yukki::Model::File for the requested repository and path.

download_file

Returns the file in the response with a MIME type of "application/octet". This should force the browser to treat it like a download.

view_file

Returns the file in the response with a MIME type reported by "media_type" in Yukki::Model::File.

rename_file

Handles attachment renaming via the page rename controller.

remove_file

Displays the remove confirmation.

upload_file

This uploads the file given into the wiki.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2017 by Qubling Software LLC.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.