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

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

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

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

Import failed: Upload of import file failed. A temporary folder is missing.

 * MediaWiki version: 1.13.2
 * PHP version: 5.2.6 (apache2handler)
 * MySQL version: 5.0.41
 * URL: localhost

When I try to upload a 40KB file created by Special:Export, I get the following message.

Import failed: Upload of import file failed. A temporary folder is missing.

What folder is missing?

Where do I look to find the answer to this question "on-wiki"?

Steve Garland garland@csail.mit.edu

—71.174.198.182 07:30, 22 October 2009 (UTC)