File upload deletion complete & added extension handling

Also fixed issue with file editing on JS side
This commit is contained in:
Dan Brown
2016-10-23 13:36:45 +01:00
parent 867fc8be64
commit 7ee695d74a
6 changed files with 26 additions and 7 deletions

View File

@ -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() .'"'
]);
}