When I return the type of a generated docx file, using the following;
$finfo = finfo_open(FILEINFO_MIME_TYPE);
$type = finfo_file($finfo, $filepath);
It returns application/zip
When I run the same code on a docx generated from microsoft word, i get;
This is causing me issues, as I am posting the generated files to a third party API which is rejecting the docx file generated using PHPDocx. Is there any way around this?