Hello everybody who wants to help me asap.
I got a problem with displaying uploaded files (I am using Mediawiki). I know where the problem is but I don't know how to fix it.
Problem: Mediawiki stores uploaded files to the root insted of using a dedicated folder for some reason.
Well, I noticed that I am able to upload files properly but to the wrong location - all uploaded files are stored in root (C:\e, C:\n etc.) and I do not know why. However, I obviously need them in C:\inetpub\wwwroot\mediawiki\images where the mediawiki is taking them from and where the .htaccess file is located.
Uploaded files normally appear in Mediawiki, however without thumbnails, and when I want to show/display the full file (picture) this page appears:
HTTP Error 404.0 - Not Found
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.
Detailed Error Information
Module | IIS Web Core |
---|---|
Notification | MapRequestHandler |
Handler | StaticFile |
Error Code | 0x80070002 |
Requested URL | http://intranet:82/6/60/Something.jpg |
---|---|
Physical Path | C:\inetpub\wwwroot\mediawiki\6\60\Something.jpg |
Logon Method | Anonymous |
Logon User | Anonymous |
** I tried to copy all folders with files from root to the default location but it isn't working.
** I am using IIS7 on Windows Server 2008
** I have the upload function enabled. I changed this after installation: $wgScriptPath = "/mediawiki"; to $wgScriptPath = "";