NAME

Yancy::Plugin::File - Manage file uploads, attachments, and other assets

VERSION

version 1.035

SYNOPSIS

# XXX

DESCRIPTION

Note: This module is EXPERIMENTAL and its API may change before Yancy v2.000 is released.

XXX

This plugin API is meant to be subclassed by other asset storage mechanisms such as Hadoop or Amazon S3.

Cleanup

Files are NOT immediately deleted after they are no longer needed. Instead, a "cleanup" method exists to periodically clean up any files that are not referenced. You should schedule this to run daily or weekly in cron:

# Clean up files every week
0 0 * * 0 ./myapp.pl eval 'app->yancy->file->cleanup( app->yancy->backend, app->yancy->schema )'

CONFIGURATION

This plugin has the following configuration options.

XXX

SEE ALSO

Yancy

AUTHOR

Doug Bell <preaction@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Doug Bell.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.