API:EPrints/Apache/Storage
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
NAME[edit]
EPrints::Apache::Storage - deliver file objects via mod_perl.
DESCRIPTION[edit]
This mod_perl handle supports the delivery of the content of EPrints::DataObj::File objects.
Defined HTTP Headers[edit]
These headers will be set by this module, where possible.
Content-Disposition[edit]
The string "inline; filename=FILENAME" where FILENAME is the filename value of the file object.
If the download CGI parameter is true disposition is changed from inline to attachment, which will present a download dialog box in sane browsers.
Content-Length[edit]
The filesize value of the file object.
Content-MD5[edit]
The MD5 of the file content in base-64 encoding if the hash value is set and hash_type is MD5.
Content-Type[edit]
The mime_type value of the file object, or application/octet-stream if not set.
ETag[edit]
The hash value of the file object, if set.
Expires[edit]
The current time + 365 days, if the mtime value is set.
Last-Modified[edit]
The mtime of the file object, if set.
Accept-Ranges[edit]
Sets Accept-Ranges to bytes.
Recognised HTTP Headers[edit]
The following headers are recognised by this module.
If-Modified-Since[edit]
If greater than or equal to the mtime value of the file object returns 304 Not Modified.
If-None-Match[edit]
If differs from the hash value of the file object returns 304 Not Modified.
METHODS[edit]
handler[edit]
$rc = EPrints::Apache::Storage::handler( $r )
Handler for serving document files and thumbnails.
COPYRIGHT[edit]
© Copyright 2000-2024 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
http://www.eprints.org/eprints-3.4/
LICENSE[edit]
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.