Catalyst::Plugin::UploadProgressCatalyst::Plugin::UploadProgress Perl module contains a realtime file upload information. | |
Download |
Catalyst::Plugin::UploadProgress Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Andy Grundman
- Publisher web site:
- http://search.cpan.org/~agrundma/Catalyst-Plugin-Session-Store-DBI-0.11/lib/Catalyst/Plugin/Session/Store/DBI.pm
Catalyst::Plugin::UploadProgress Tags
Catalyst::Plugin::UploadProgress Description
Catalyst::Plugin::UploadProgress Perl module contains a realtime file upload information. Catalyst::Plugin::UploadProgress Perl module contains a realtime file upload information.SYNOPSIS use Catalyst; MyApp->setup( qw/Static::Simple Cache::FastMmap UploadProgress/ ); # On the HTML page with the upload form, include the progress # JavaScript and CSS. These are available via a single method # if you are lazy. < html > < head > < /head > ... # For better performance, copy these 3 files from the UploadProgress # distribution to your static directory and include them normally. < html > < head > < link href="/static/css/progress.css" rel="stylesheet" type="text/css" / > < script src="/static/js/progress.js" type="text/javascript" >< /script > < script src="/static/js/progress.jmpl.js" type="text/javascript" >< /script > < /head > ... # Create the upload form with an onsubmit action that creates # the Ajax progress bar. Note the empty div following the form # where the progress bar will be inserted. < form action='/upload' method="post" enctype="multipart/form-data" onsubmit="return startEmbeddedProgressBar(this)" > < input type="file" name="file" / > < input type="submit" / > < /form> < div id='progress' >< /div > # No special code is required within your application, just handle # the upload as usual. sub upload : Local { my ( $self, $c ) = @_; my $upload = $c->request->uploads->{file}; $upload->copy_to( '/some/path/' . $upload->filename ); }Requirements:· Perl
Catalyst::Plugin::UploadProgress Related Software