Revision 3933a9e9
Von Tamino Steinert vor 12 Monaten hinzugefügt
SL/Controller/Base.pm | ||
---|---|---|
156 | 156 |
} |
157 | 157 |
|
158 | 158 |
my $content_type = $params{type} || 'application/octet_stream'; |
159 |
my $content_disposition = $params{content_disposition} || 'attachment'; |
|
159 | 160 |
my $attachment_name = $params{name} || (!ref($file_name_or_content) ? $file_name_or_content : ''); |
160 | 161 |
$attachment_name =~ s:.*//::g; |
161 | 162 |
|
... | ... | |
165 | 166 |
$self->js->render unless $params{js_no_render}; |
166 | 167 |
} else { |
167 | 168 |
print $::form->create_http_response(content_type => $content_type, |
168 |
content_disposition => 'attachment; filename="' . $attachment_name . '"',
|
|
169 |
content_disposition => $content_disposition . '; filename="' . $attachment_name . '"',
|
|
169 | 170 |
content_length => $size); |
170 | 171 |
|
171 | 172 |
if (!ref $file_name_or_content) { |
Auch abrufbar als: Unified diff
S:C:Base: erlaube Überschreibung von content_disposition beim Datei senden