NAME
MojoMojo::Controller::Attachment - Attachment controller
DESCRIPTION
MojoMojo supports attaching files to nodes. This controller handles administration and serving of these assets.
ACTIONS
auth
Permission control for mojomojo pages.
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@nordaaker.com
LICENSE
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.