The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Apache::File::Resumable - example of how to serve resumable files under modperl

SYNOPSIS

This code can be adapted to serve resumable downloads under mod_perl.

As it is setup now, you could put this file in some directory under your document root with a name like /home/httpd/htdocs/bigfile.afr (that's right, name an executable Perl file with this extension), then setup Apache to run files with that extension as a script:

 <Files *.afr>
    however that is done
 </Files>

Then uncomment the line

 #doit 

in the same file and it will serve the zip file indicated in the subroutine download(), in a resumeable fashion.

I'm sorry for not giving you a complete handholding on this, but I feel that this code is close enough to be of great service to some that I think that you should just go the extra few more yards to the goal-line to finish it off. And email me the fixes to the docs when you do.

I have used this code to get resumable downloads working, I just forgot the Apache settings to do it.

DESCRIPTION

EXPORT

None by default.

AUTHOR

T. M. Brannon, <tbone@cpan.org>