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?

-


 * Mediawiki Version: 1.13.2
 * PHP version: 5.2.6
 * mySQL: 5.0.51a

Getting the same error message: "Cannot find C:\WINDOWS\TEMP\PHP"X" intermittently when uploading files. Tried changing upload_tmp_dir directive and other settings in PHP.ini but nothing seems to work. Does anyone know what might be causing this error?

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

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.

Uploaded file Namespace auto change

 * MediaWiki version: 1.11.0
 * PHP version: 5.1.6
 * MySQL version: 5.0.77
 * URL:

Is there a way to have uploaded files Namespace automatically set to Media, or something other than Image?

Auto Namespace Change

 * MediaWiki version: 1.11.0
 * PHP version: 5.1.6
 * MySQL version: 5.0.77
 * URL:

Is there a way to have uploaded files Namespace automatically set to Media, or something other than Image?

Drag and Drop upload support

 * MediaWiki version: Apologies for not having these details to hand, they are behind a firewall that I can't access right now.
 * PHP version:
 * MySQL version:
 * URL:

Please could you tell me if there is an extension to allow Drag and Drop file uploads on Mediawiki. It would be a really useful feature that is already available on many wiki's.

—86.17.191.253 05:16, 27 July 2010 (UTC)

Uploading

 * MediaWiki version:
 * PHP version:
 * MySQL version:
 * URL:

On a WIKI site I do not have the "upload" link in the tool box on the left of the screen. I would be grateful if you could instruct me on how to get this "upload" link back in to the tool box.

—155.198.222.186 09:09, 27 July 2010 (UTC)

Bitmap.php error

 * MediaWiki version: 1.16.0
 * PHP version: 5.2.11 (apache2handler)
 * MySQL version: 5.0.81-community
 * URL: http://pidgiwiki.netai.net/index.php/File:Ho-Oh_Sugimori.jpg

I'm getting the following PHP error: Fatal error: Allowed memory size of 52428800 bytes exhausted (tried to allocate 11728 bytes) in /home/a8496526/public_html/includes/media/Bitmap.php on line 213

Line 213 is $src_image = call_user_func( $loader, $srcPath );

(immewnity)--99.181.164.155 21:26, 1 August 2010 (UTC)

Error creating directories

 * MediaWiki version: 1.16
 * PHP version: 5.2.11
 * MySQL version: 5.1.38
 * URL: Intranet

I'm trying to setup file uploads. My settings in LocalSettings.php are the following:

Now i go to the upload file page, and if i click the "Browse..." button the file input field keeps blank if i select something with an extension not in $wgFileExtensions. So it doesn't seem to work, any ideas?

—87.223.209.87 17:56, 3 August 2010 (UTC)