Topic on Project:Support desk

Trouble with file uploads - Upload link doesn't go away after page save

3 (talkcontribs)

Thanks in advance for your advice on how to better diagnose this issue. The environment is a Fedora 20 box running mediawiki-1.23.3-1.fc20.noarch and php-5.5.17-2.fc20.x86_64. When wiki users create a new page and attempt to put in a file link, say with , after the page is saved, we see the normal upload link ( ). So I click on the link and get to the normal file upload page, and upload the file as expected. When I look at [File List], I can see that the file has been uploaded. Here is where things move to the unexpected... When I go to the new page with the file link, rather than getting a link to the newly uploaded file ( ), I still get the Special:Upload link. Now -- what is really weird is that if I edit the new page and change anything on it (ie: add a character of text or remove a character of text) and click save, then the link now becomes correct ( ).

Any idea why the page links to a newly uploaded file don't shift correctly from Special:Upload to link to the actual file, after the file is uploaded?

Thanks! Any advice on diagnosis is welcome.

Ricordisamoa (talkcontribs)

Simply purge the file description page after uploading the file.

Ciencia Al Poder (talkcontribs)

This shouldn't be necessary. If the file was linked only from one page, the upload of that file should automatically purge the page that links to it, so when you load the page again, it refreshes all links, but this is happening on that installation for some unknown reason. If there are more pages linking to it (I think the threshold is 10, or 100) then the purge is deferred to the Manual:Job queue, but it doesn't seem to be the case.

Although I'm not able to reproduce the issue on my local installation.

Reply to "Trouble with file uploads - Upload link doesn't go away after page save"