Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MojoMojo::Controller::UsercContributed PerlMojoMojo::Controller::Attachment(3)

NAME
       MojoMojo::Controller::Attachment	- Attachment controller

DESCRIPTION
       MojoMojo	supports attaching files to nodes. This	controller handles
       administration and serving of these assets.

ACTIONS
   auth
       Return whether the current user has attachment manipulation rights
       (upload/delete).

   unauthorized
       Private action to return	a 403 with an explanatory template.

   default
       Private action to return	a 404 not found	page.

   attachments
       Main attachment screen.	Handles	uploading of new attachments.

   list
       Display the list	of attachments if the user has view permissions.

       template: attachments/list.tt

   plain_upload
       Upload feature that uses	the traditional	upload technique.

   check_file
       Check if	the file(s) uploaded could be added to the Attachment table.

   flash_upload
       Upload feature that uses	flash

   attachment
       Find and	stash an attachment.

   defaultaction
       Set the default action for an attachment	which is forwarding to a view.

   view
       Render the attachment in	the browser ("Content-Disposition: inline"),
       with caching for	1 day.

   download
       Forwards	to "view" then forces the attachment to	be downloaded
       ("Content-Disposition: attachment") and disables	caching.

   thumb
       Thumb action for	attachments. Makes 100x100px thumbnails.

   inline
       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.

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.

perl v5.32.1			  2016-12-0MojoMojo::Controller::Attachment(3)

NAME | DESCRIPTION | ACTIONS | AUTHOR | LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=MojoMojo::Controller::Attachment&sektion=3&manpath=FreeBSD+13.0-RELEASE+and+Ports>

home | help