NAME

MojoMojo::Controller::Attachment - Attachment controller

SYNOPSIS

Handles urls like /.attachment/14/download /.attachment/23/view /.attachment/23/insert

DESCRIPTION

This controller handles node attachments

ACTIONS

auth

auth controll for mojomojo

attachments

main attachment screen. Handles uploading of new attachments.

default

This action dispatches to the other private actions in this controller based on the second argument. the first argument is expected to be an attachment id.

download

force the attachment to be downloaded, through the use of content-disposition.

thumb

thumb action for attachments. makes 100x100px thumbs

inline (private);

show inline attachment

delete

delete the attachment from this node. Will leave the file on the file system.

insert

Insert a link to this attachment in the main text of the node. Will show a thumb for images. TODO: Write templates for more mime types.

AUTHOR

Marcus Ramberg marcus@thefeed.no

LICENSE

This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.