GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MojoMojo::Controller::Attachment(3) User Contributed Perl Documentation MojoMojo::Controller::Attachment(3)

MojoMojo::Controller::Attachment - Attachment controller

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

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

Private action to return a 403 with an explanatory template.

Private action to return a 404 not found page.

Main attachment screen. Handles uploading of new attachments.

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

template: attachments/list.tt

Upload feature that uses the traditional upload technique.

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

Upload feature that uses flash

Find and stash an attachment.

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

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

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

Thumb action for attachments. Makes 100x100px thumbnails.

Show 800x600 inline versions of photo attachments.

Delete the attachment from this node. Will leave the original file on the file system but delete its thumbnail and inline versions.

Marcus Ramberg "marcus@nordaaker.com"

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
2016-12-07 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.