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?

(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)

Here's my info:


 * MediaWiki version: 1.15
 * PHP version: 5.2.8 (cgi-fcgi)
 * MySQL version: 5.0.27-community-nt
 * URL: www.bioen.utah.edu/faculty/ADD/wiki

Ok I know that this error has been discussed a lot, but I've tried every solution that I've come across and nothing has helped in solving this issue for me. I receive the following error when I try to upload a file to the wiki:

Could not rename file "C:\WINNT\Temp\php6F.tmp" to "public/Bryce.jpg".

Due to security restrictions I can't set the "images" file to 777 but I have made it read/write available.Please any help would be greatly appreciated.

—155.101.188.13 22:50, 12 October 2009 (UTC)
 * -Bryce

I just got this error. I solved it by CHMODing not just the images directory but it and all the sub-directories underneath it to 777 (but not the files which remain at 655). Doing the top level images directory alone to 777 was not enough. --Agrestis 14:51, 28 October 2009 (UTC)

I could not upload images. It alway says:

Internal error Could not create directory "public/e/ea".

I have turned off the safe_mode in php.ini. I have changed mode for images directory to 777. I have also set $wgEnableUploads to true. But it does not work.

drwxrwxrwx  1 admin           None                  0 Nov 30 11:07 images

safe_mode = Off

$wgEnableUploads      = true;

Here's my info:
 * MediaWiki version: 1.15.1
 * PHP version: php-5.2.11-win32-installer
 * MySQL version: mysql-essential-5.1.39-win32
 * IIS 5.1
 * Windows XP SP2

Could please anyone help?

--Thaibt 04:39, 1 December 2009 (UTC)

Upload Zip Files
I need to be able to upload zip files and possibly a few other extension to my Wiki. I have searched and read pages but am still unable to work out how to do this. Please if you do have a solution for me include the file name that I would need to edit to change or add code into

uploading image

 * MediaWiki version: 1.51.1
 * PHP version: 5.2.0
 * MySQL version: 5.0.27
 * URL: local

hi, sorry for my english.

I have "mounting" mediawiki into usb key under easyPhp 2.0. The sw run perfectly but i don't succeed to upload my image. i have changing the image parameter into localsetting.php but nothing.

any idea?

thanks

—95.75.101.79 23:08, 29 November 2009 (UTC)

uploading documents

 * MediaWiki version: 1.14.0
 * PHP version: 5.1.6
 * MySQL version: 5.0.22
 * URL:

Hi folks,

I encounter the following problem when uploading a document. When I uploaded a document and then upload a new version of the document, I can't see the new version of the document when I download it. Another user can see it. After an hour or so I'm also able to see the updated document. I tried it with the IE and Firefox, same problem. I also emptied my cach and all other options within the browser, so I guess it has to do with the MediaWiki itself. Thanks for your support.

Warning: mkdir [function.mkdir]: Permission denied
I have recently updated this wiki to 1.15.1 and have the same problem reported by others. That is: ‘Warning: mkdir [function.mkdir]: Permission denied in /home/naturewe/public_html/includes/GlobalFunctions.php on line 2012’ Most of the requests and replies in the forums, some dating back to 2006, having the same problem have provided some sort of ‘solution’ but ones that I cannot properly understand, although where possible all solutions have been attempted. Shell access is not available to me. If anyone is able to guide me through the solution it will be much appreciated. Darryl
 * MediaWiki version: MediaWiki 1.15.1
 * PHP version: PHP 5.2.11 (apache2handler)
 * MySQL version: MySQL 5.0.87-community
 * URL: []

—144.131.29.144 06:11, 13 January 2010 (UTC)