Topic on Project:Support desk

Unable to upload files to the server using Special:Upload

5
117.217.3.218 (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!

61.200.23.228 (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.

117.207.220.144 (talkcontribs)

Can you enlighten me on this issue

Ciencia Al Poder (talkcontribs)

Imagine your wgServer is http//www.example.com, but your web server is actually at http://example.com and the server enforces it by redirecting all requests to http//www.example.com to http//example.com. Then when you submit a form in your MediaWiki, it posts the data to http//www.example.com, but before it reaches the PHP engine, the web server intercepts the requests and redirects it to http//example.com, 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"