Topic on Project:Support desk

Jump to navigation Jump to search

Unable to upload files to the server using Special:Upload

5 (talkcontribs)

I've set a new wiki and my details are: Product Version MediaWiki 1.20.3 PHP 5.3.21 (cgi-fcgi) MySQL 5.0.96-log

I tried almost everything possible to get my uploads, but I'm unable to do so. When I try to upload a file, the browser processes for a while and lands on the same page. When the upload logs were checked, there was no hint of any uploads. Please help me with a solution! (talkcontribs)

are you on windows 7?

Ciencia Al Poder (talkcontribs)

This can happen if you have a wrong $wgServer which can be doing a redirect from one page to another on each post edit. If some post edits fails (for example, doing a search), this may be the problem. (talkcontribs)

Can you enlighten me on this issue

Ciencia Al Poder (talkcontribs)

Imagine your wgServer is http//, but your web server is actually at and the server enforces it by redirecting all requests to http// to http// Then when you submit a form in your MediaWiki, it posts the data to http//, but before it reaches the PHP engine, the web server intercepts the requests and redirects it to http//, losing the posted data, so MediaWiki receives the request as if nothing has been submitted. If you enable debugging on MediaWiki you won't see any POST request.

Reply to "Unable to upload files to the server using Special:Upload"