Whenever I download the file, it gets downloaded with document.docx - I think this code is responsible
if (!empty($args[2])) {
$fileNameDownload = $args[2];
} else {
$fileNameDownload = 'document.docx';
}
But API documentation doesnt talk about arg[1] or arg[2] - what are these? Why do I need them?