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. No caching.
thumb
thumb action for attachments. makes 100x100px thumbs
inline (private);
Show 800x600 inline versions of photo attachments.
delete
Delete the attachment from this node. Will leave the original file on the file system but delete its thumbnail and inline versions.
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.
insert_content
Insert a plugin File link to this attachment in the main text of the node.
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.