mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 18:49:21 -07:00
Moving this to v-open-fs-file
This commit is contained in:
parent
d5441fdf85
commit
af66851b8b
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ if (($_SESSION['user'] == 'admin') && (!empty($_SESSION['look']))) {
|
|||
}
|
||||
|
||||
$path = $_REQUEST['path'];
|
||||
if (!empty($path) && file_exists($path)) {
|
||||
if (!empty($path)) {
|
||||
header("Content-type: application/octet-stream");
|
||||
header("Content-Transfer-Encoding: binary");
|
||||
header("Content-disposition: attachment;filename=".basename($path));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue