| @@ -211,8 +211,10 @@ | ||
| 211 | 211 | { |
| 212 | 212 | |
| 213 | 213 | |
| 214 | 214 | $uniqid = (string) preg_replace('/[^0-9a-zA-Z_]/', '', (string) $request->input('uniqid')); |
| 215 | + $name = $request->input('name', $this->config->get('file.default_archive_name')); | |
| 216 | + | |
| 215 | 217 | $file = $tmpfs->readStream($uniqid); |
| 216 | 218 | |
| 217 | 219 | $streamedResponse->setCallback(function () use ($file, $tmpfs, $uniqid) { |
| 218 | 220 | // @codeCoverageIgnoreStart |
| @@ -232,10 +234,10 @@ | ||
| 232 | 234 | $streamedResponse->headers->set( |
| 233 | 235 | 'Content-Disposition', |
| 234 | 236 | HeaderUtils::makeDisposition( |
| 235 | 237 | HeaderUtils::DISPOSITION_ATTACHMENT, |
| 236 | - $this->config->get('file.default_archive_name'), | |
| 237 | - 'archive.zip' | |
| 238 | + $name, | |
| 239 | + $this->config->get('file.default_archive_name') | |
| 238 | 240 | ) |
| 239 | 241 | ); |
| 240 | 242 | $streamedResponse->headers->set( |
| 241 | 243 | 'Content-Type', |