mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-25 14:37:59 +01:00
Use a sensible filename for image downloads.
This commit is contained in:
parent
8d7f36c375
commit
88b034ea6c
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ class ImagesController extends Controller
|
||||||
$response->header('X-Accel-Redirect', $filename);
|
$response->header('X-Accel-Redirect', $filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
$response->header('Content-Disposition', 'filename="' . $filename . '"');
|
$response->header('Content-Disposition', "filename=\"ponyfm-i${id}-${type}.png\"");
|
||||||
$response->header('Content-Type', 'image/png');
|
$response->header('Content-Type', 'image/png');
|
||||||
|
|
||||||
$lastModified = filemtime($filename);
|
$lastModified = filemtime($filename);
|
||||||
|
|
Loading…
Reference in a new issue