Project:Support desk/Sections/Uploading

__NEWSECTIONLINK__

= Uploading Support =

.TMP File issue?

Mediawiki Version: latest, PHP version Latest mySQL latest --- When Users try to upload images onto the wiki, they get a error that states "Cannot find C:\WINDOWS\TEMP\PHP"X" Whereas X indicates a letter (currently PHPc.tmp) I've disabled Imagemagic(sp?) and I am still getting an error. Can I remote host the images and what tag would I use to embed it?

File upload breaks in 1.15.1

 * MediaWiki version: 1.15.1
 * PHP version:  5.2.6 (apache2handler)
 * MySQL version: 5.0.77
 * URL: http://tekstopia.uio.no/mediawiki_15/index.php/Special:Upload

On upgrading from MW 1.11 to 1.15.1 (yes I should have done this a while ago), I suddenly am unable to enable uploads. Tried this on my test server first, and was told file uploads was disabled in php (although it is definitely not). I thought the test server might be messed up somehow, so I set up a test version in a folder on the live server, and got the same error there. I have double checked with phpinfo, and file_uploads is definitely on (and post_max_size and upload_max_filesize are both 8M). It is a fresh MW installation in the same environment that my working live server is running. Anyone got any idea what can be causing this? —Anderssl 17:46, 11 September 2009 (UTC)


 * Update: There is an error message in the logs on my server saying that ini_get is disabled for security reasons. Presumably this is the cause. Will check with the server admins and report back if that doesn't solve it. --Anderssl 22:29, 11 September 2009 (UTC)

Upload directory (public) is not writable by the webserver

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.8 (apache2handler)
 * MySQL version: 5.0.51a-log
 * URL: http://wiki.pdaxrom.org/index.php/Main_Page

Hi! I set the /images folder permission "775" (even try to set "777") and in LocalSettings.php type the following: $wgEnableUploads = true; (according the User Guide)

But when I trying to upload a file such error is occured: Internal error The upload directory (public) is not writable by the webserver.

How I can set the permission to upload file using webserver?

—83.229.245.58 08:52, 16 September 2009 (UTC)


 * You have to make the upload directory (folder) writable by the user running the webserver. This is something that is done on the webserver itself, not in the MediaWiki code. See Manual:Configuring file uploads for details. Doing this right is important for the security of the server, so if you have no idea what all of this means you should probably talk to your server administrator. --Anderssl 19:18, 16 September 2009 (UTC)
 * Sorry, somehow I didn't read your question properly. If you have set the /images folder to 777 it should work (as long as /images is your upload folder). Sorry, I'll stop giving stupid answers and leave the stage to someone who knows more... --Anderssl 19:23, 16 September 2009 (UTC)
 * I have the same problem. My wiki used to work fine and it suddenly appeared. Didn't find a solution trying to Google it..

File Upload

 * MediaWiki version: 1.15.1
 * PHP version: 5.0.4 (isapi)
 * MySQL version: 4.1.7-nt
 * URL: http://sinhweb3/wiki/

open_basedir ist not set in php.ini $wgEnableUploads = true in LocalSettings This is a windows 2003 system. For testing issues I set user rights for everyone to full access on the "images" folder. When trying to upload a file I get the following error: Could not create directory "public/6/6b". I tried the following: $wgUploadDirectory = "{$wgScriptPath}/uploads"; $wgUploadPath = "{$wgScriptPath}/uploads"; and the error message changes to: The upload directory (public) is missing and could not be created by the webserver.

On the upload folder also everyone has full access.

Any help is appreciated.

—81.252.82.4 12:42, 17 September 2009 (UTC)

(SOLVED) Errors while deleting files/images

 * MediaWiki version: 1.15.1
 * PHP version: 5.0.4 (apache)
 * MySQL version: 4.1.21
 * URL: (intranet)

Error deleting file: Could not create directory "deleted/d/2/n" (or the like).

Hi, I have the problem that I get an error message when trying to delete images from our wiki. It says: "Error deleting file: Could not create directory "deleted/d/2/n" (or the like).

I found that the permissions of the ./images/deleted directory can not be changed to 777. Apparently it was made (or is owned) by another user. I have no root access, so I can't chown the directory.

I also tried to create another directory (del), set its permissions to 777. And then included in the LocalSettings.php :

$wgFileStore['deleted']['directory'] = "$wgUploadPath/del"; $wgFileStore['deleted']['url'] = null; $wgFileStore['deleted']['hash'] = 0;

This doesn't help either. Even worse, after trying to delete a file, it turned out that also the owner of del was changed...

Any suggestions?

-> I managed to resolve it myself, after browsing mediawiki and Google for the same problem. It turned out that Safe_Mode should be tunred off (search on Safe_Mode for instructions how to do that).

--- Gert-willem Romer ---

Upload Error

 * MediaWiki version: MediaWiki 1.14.0
 * PHP version: 5.2.4 (apache2handler)
 * MySQL version: 5.0.45-log
 * URL: http://www.coolapedia.com/index.php/Special:Upload

Cannot seem to upload any files or videos even after enabling it in the PHP source code. What could be the issue? Keep getting an error and need to be able to upload images. Hope you can help.

Here is the error that I get after trying to upload a file in the uploading utility page Internal error From Coolapedia Jump to: navigation, search

Could not create directory "public/a/a9".

—Andrewjs1985 21:19, 28 September 2009 (UTC)