2
내가 노력하고 있어요 : 만 로컬 파일에 대한, 그냥 URL을 사용 (HTTPS를 : // .....)
.post("/getAttachments", (req, res, next) => {
repository.getAttachments(req.body)
.then((attachment) => {
return res.sendFile('https://host.com' + attachment.req.path);
})
.catch(next);
})
///clientService:
function getAttachments(params) {
return $http.post(baseUrl + "/getAttachments", params, {responseType: 'arraybuffer'}).success(function (data) {
let blob = new Blob([data], {type: 'application/vnd.ms-excel'});
saveAs(blob);
});
};
모든 작품. 도와주세요.
감사합니다. 정말 도움이됩니다. – aaaaaaaaax10