I'm having a similar problem where I cannot name reports. In my case each report name is some guid like '023bb970-81fc-4945-a5e9-622578a2a723'. I am new to using jsreportsonline and have never actually gotten a normal report name. In my case requests are being made from node using superagent (I also tried with axios but had the same result):
const data = { "template": { "shortid": jsReportOnlineId }, "data": reportData, "options": { "Content-Disposition": "attachment; filename=myreport.pdf", } }; const {username, password} = getJsReportOnlineAuthorizationInfo(); request .post(reportUrl) .set('Content-Type', 'application/json') .responseType('arraybuffer') .auth(username, password) .send(data) .end(function (err, response) {The generated report looks as desired except for the report name. Here is response header info:
headers: { date: 'Sat, 15 Jul 2017 14:13:50 GMT', 'content-type': 'application/pdf', 'transfer-encoding': 'chunked', connection: 'close', server: 'nginx/1.13.1', 'x-powered-by': 'Express', 'access-control-allow-origin': '*', 'set-cookie': [Object], 'content-disposition': 'attachment; filename=myreport.pdf', 'file-extension': 'pdf', 'number-of-pages': '2', 'x-xss-protection': '0' }, rawHeaders: [ 'Date', 'Sat, 15 Jul 2017 14:13:50 GMT', 'Content-Type', 'application/pdf', 'Transfer-Encoding', 'chunked', 'Connection', 'close', 'Server', 'nginx/1.13.1', 'X-Powered-By', 'Express', 'Access-Control-Allow-Origin', '*', 'Set-Cookie', 'render-complete=true; Path=/', 'Set-Cookie', 'session=[I removed this]', 'Content-Disposition', 'attachment; filename=myreport.pdf', 'File-Extension', 'pdf', 'Number-Of-Pages', '2', 'X-XSS-Protection', '0' ],