Changeset 13
- Timestamp:
- 10/14/07 02:05:15
- Files:
-
- xmlautoindex/trunk/Apache/XmlAutoIndex/Audio.pm (modified) (1 diff)
- xmlautoindex/trunk/Apache/XmlAutoIndex/Image.pm (modified) (1 diff)
- xmlautoindex/trunk/Apache/XmlAutoIndex/OpenDocument.pm (modified) (1 diff)
- xmlautoindex/trunk/Apache/XmlAutoIndex/Pdf.pm (modified) (1 diff)
- xmlautoindex/trunk/Apache/XmlAutoIndex/Video.pm (modified) (1 diff)
- xmlautoindex/trunk/Apache/XmlAutoIndex/core.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
xmlautoindex/trunk/Apache/XmlAutoIndex/Audio.pm
r6 r13 45 45 { 46 46 my $this = shift; 47 return qw{ thumb fmxml audioPlaylist meta };47 return qw{ thumb fmxml audioPlaylist meta download }; 48 48 } 49 49 xmlautoindex/trunk/Apache/XmlAutoIndex/Image.pm
r1 r13 33 33 { 34 34 my $this = shift; 35 return qw{ thumb size0 size1 size2 size3 meta };35 return qw{ thumb size0 size1 size2 size3 meta download }; 36 36 } 37 37 xmlautoindex/trunk/Apache/XmlAutoIndex/OpenDocument.pm
r1 r13 27 27 { 28 28 my $this = shift; 29 return qw{ thumb size0 meta };29 return qw{ thumb size0 meta download }; 30 30 } 31 31 xmlautoindex/trunk/Apache/XmlAutoIndex/Pdf.pm
r1 r13 23 23 { 24 24 my $this = shift; 25 return qw{ thumb };25 return qw{ thumb download }; 26 26 } 27 27 xmlautoindex/trunk/Apache/XmlAutoIndex/Video.pm
r1 r13 18 18 { 19 19 my $this = shift; 20 return qw{ thumb flv meta };20 return qw{ thumb flv meta download }; 21 21 } 22 22 xmlautoindex/trunk/Apache/XmlAutoIndex/core.pm
r6 r13 84 84 { 85 85 my $this = shift; 86 return qw{ thumb };86 return qw{ thumb download }; 87 87 } 88 88 … … 191 191 { 192 192 ( $file, $mime) = $this->getMetaData( ); 193 } 194 elsif ($format eq 'download') 195 { 196 $this->request->headers_out->{'Content-Disposition'} = "attachment; ".$this->file(); 197 return Apache2::Const::DECLINED(); 193 198 } 194 199 else
