![]() |
![]()
| ![]() |
![]()
NAMEMojoMojo::Controller::Attachment - Attachment controller DESCRIPTIONMojoMojo supports attaching files to nodes. This controller handles administration and serving of these assets. ACTIONSauthReturn whether the current user has attachment manipulation rights (upload/delete). unauthorizedPrivate action to return a 403 with an explanatory template. defaultPrivate action to return a 404 not found page. attachmentsMain attachment screen. Handles uploading of new attachments. listDisplay the list of attachments if the user has view permissions. template: attachments/list.tt plain_uploadUpload feature that uses the traditional upload technique. check_fileCheck if the file(s) uploaded could be added to the Attachment table. flash_uploadUpload feature that uses flash attachmentFind and stash an attachment. defaultactionSet the default action for an attachment which is forwarding to a view. viewRender the attachment in the browser ("Content-Disposition: inline"), with caching for 1 day. downloadForwards to "view" then forces the attachment to be downloaded ("Content-Disposition: attachment") and disables caching. thumbThumb action for attachments. Makes 100x100px thumbnails. inlineShow 800x600 inline versions of photo attachments. deleteDelete the attachment from this node. Will leave the original file on the file system but delete its thumbnail and inline versions. AUTHORMarcus Ramberg "marcus@nordaaker.com" LICENSEThis library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
|