Topic on Project:Support desk

Binary file upload save with a wrong extension

3
Summary by Ciencia Al Poder

solar flares

Gtehrani (talkcontribs)

Hi,

I added $wgFileExtensions in LocalSettings.php to allow uploads of Microsoft Office files i.e. ppts, docx, xlsx. The problem is that when I upload a file with pptx, the upload tool insists on saving it as a docx file. PDf files seem to be immune but not Office files.

Appreciate your help,

George

87.123.14.60 (talkcontribs)

I don't get it. Do you say that, when you have a pptx file and you upload it, the resulting file name ends in docx? Where does this happen? I mean, you can explicitly define the file name you want, right?

Gtehrani (talkcontribs)

Yes, it happened when I used the upload tool to upload a pptx file. I tried twice with the same result. 3 hours later I tried again after checking my scripts, and viola! It's working! Must have been solar flares.