mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-04 00:44:41 +08:00
File upload deletion complete & added extension handling
Also fixed issue with file editing on JS side
This commit is contained in:
@ -196,7 +196,7 @@ class FileController extends Controller
|
||||
$fileContents = $this->fileService->getFile($file);
|
||||
return response($fileContents, 200, [
|
||||
'Content-Type' => 'application/octet-stream',
|
||||
'Content-Disposition' => 'attachment; filename="'. $file->name .'"'
|
||||
'Content-Disposition' => 'attachment; filename="'. $file->getFileName() .'"'
|
||||
]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user