Finished
This commit is contained in:
parent
fe657129a7
commit
ba667f73f5
@ -35,7 +35,8 @@ export default class OfficeRibController extends ApiController {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const file = await this.officeRibService.getByUid(officeId, fileName!);
|
const file = await this.officeRibService.getByUid(officeId, fileName!);
|
||||||
response.attachment(fileName!);
|
response.attachment(fileName!);
|
||||||
|
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
|
||||||
response.send(file.Body);
|
response.send(file.Body);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.httpInternalError(response, error);
|
this.httpInternalError(response, error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user