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?

i don'tage bing tag'Bold text''[Link title] == [[File:Headline text[[Media: Example.ogg --~Insert non-formatted text here

]]''' -
 * 1) REDIRECT — ==


 * 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
bing http:charter,net tahoo google 19o6 later that bing.com sing all it been dad eor me(VI zcampron@http:charter.net,yahoo, HTTP:GOOGIE CEL ALL MEST UP ATT RONALD D CAMPBEII PLEASE HELP ?(WINDOWS vIST &iNTERNET


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

You can add this to LocalSettings.php:

$wgFileExtensions[] = 'doc';

Don't know if it works for ZIP files though.

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.

Wiki not loads doc-files saved in MS Word 2007 format 97-2003
Our wiki not loads files *.doc which was created in the MS Word 2007 and saved in the format suitable for MS Word 97-2003. Message is: '''File is damaged or has an incorrect extension. Please check the file and try to download it again.''' (in Russian: Файл либо повреждён, либо имеет неверное расширение. Пожалуйста, проверьте файл и попробуйте загрузить его ещё раз.) Help please.
 * MediaWiki version: 1.15.1 (in Russian)
 * PHP version: 5.2.6-3ubuntu4.5 (apache2handler)
 * MySQL version: 5.0.75-0ubuntu10.2
 * URL:

Possible solution: http://www.mwusers.com/forums/showthread.php?10094-Error-on-uploading-doc-after-MW-1-14-upgrade
 * Спасибо большое. Это очень помогло.--92.62.62.17 15:40, 21 February 2010 (UTC)


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

—75.132.21.189 01:24, 22 February 2010 (UTC)

This file contains HTML or script code that may be erroneously interpreted by a web browser.
software version info below. -->
 * MediaWiki version: 1.15.1 (r59167)
 * PHP version: 5.2.10 (apache2handler)
 * MySQL version: 5.0.51a-community-nt
 * URL: N/A Private server

Error: "This file contains HTML or script code that may be erroneously interpreted by a web browser."

Have turned off everything possible in the LocalSettings.php, and we are still getting this when trying to upload XML Code Snippets (Visual Studio .snippet).

This is an internal intranet Wiki, and don't care about ANY mime type or extension checking...

How can we get a page with .snippets as uploaded docs?

—195.75.83.25 15:05, 4 March 2010 (UTC)


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

—120.61.150.126 08:27, 9 March 2010 (UTC)

Linking to non-image files (solved)
MediaWiki	1.15.1 PHP	5.2.9 (apache2handler) MySQL	5.0.89-community

How can I link to a non-image file without saying File:filename.pdf for the link? It would be very nice if I could do this much like the wiki does for external links.

Thanks

—68.209.251.67 01:03, 10 March 2010 (UTC)


 * Fixed - here.

Allowing additional file types to be uploaded

 * MediaWiki version: 1.15.1
 * PHP version: 5.2.9 (apache2handler)
 * MySQL version: 5.0.32-Debian_7etch5~imedia.1-log
 * URL:

File upload error: The file is corrupt or has an incorrect extension. Please check the file and upload again.

Added 'sldprt', 'sldasm', 'slddrw', 'eprt', 'easm', 'edrw', 'dwg' to $wgFileExtensions in LocalSetting.php

Added application/octet-stream sldprt sldasm slddrw eprt easm edrw dwg in includes/mime.types

Added application/octet-stream [MULTIMEDIA] in includes/mime.info

I'm not sure if MULTIMEDIA was the appropriate defined media type or if it really matters. Please let me know the correct method for enabling the upload of these file types (CAD drawing files)

—Caplain 21:44, 11 March 2010 (UTC)

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?

Internal Error when uploading images

 * MediaWiki version: 1.15.2
 * PHP version: 5.2.4-2ubuntu5.6 (apache2handler)
 * MySQL version: 5.0.51a-3ubuntu5.4
 * URL: http://www.brod.med.br

I have read several posts regarding the same problem and still was not able to figure out what is going on. I do have other systems installed in my server (such as Drupal) using exactly the same structures and file uploads work fine. I have set $wgHashedUploadDirectory = false and this only changed the mkdir error from not being able to create the directory public/f/f1 to not being able to create the directory public/archive. The public directory is now 777 and I even tried to create by hand the archive directory with no success.

I am pretty new to MediaWiki and I am sure I am missing something. All help is welcome!

—Cesar Brod 13:49, 20 March 2010 (UTC)