Description of issue or problem I’m having:
Hi OJS team,
I encounter a fatal problem when I download docx/doc/xls/xlsx/rar/zip… files form OJS generated link, and open files, it will show file corrupted. I’m not sure why is this happened, It happened suddenly at one day.
Is it database corrupt? Since I know that database have record file type. Please help to check this issue, it is very urgent.
Steps I took leading up to the issue:
- Upload file via OJS.
- Download file via OJS.
What I tried to resolve the issue:
I did some test:
- I’m sure that upload file is correct which by binary compare from file explorer on my server.
- Just encounter to use OJS link, such as: URL/index.php/journals/$$$call$$$/api/file/file-api/download-file?.. to download file.
- The PHP log no show any error during download and finish file.
- Currently, I only found pdf file can normal download and open without any error.
Application Version - e.g., OJS 3.1.2:
ojs-3.1.2-1, PHP 7.0.33
Additional information, such as screenshots and error log messages if applicable:
I have use binary to compare with between download from OJS and original file, this is a docx file as shown below,