[Typo3-doc] upload failure, back

Sylvain Viart sylvain at ledragon.net
Mon Oct 25 06:18:15 CEST 2004


Sylvain Viart wrote:

> Could not copy file 
> "/var/www/rlmp/typo3org/wiki.typo3.org/tmp/phpEYcB3q" to 
> "/var/www/rlmp/typo3org/wiki.typo3.org/www/images/7/77/Small_TYPO3-logo.png". 
> 

The problem is somewhere in the function saveUploadedFile() in script 
includes/SpecialUpload.php line 174. (in my MediaWiki 1.3.1)

The PHP function move_uploaded_file() return FALSE, why ?
http://www.php.net/manual/en/function.move-uploaded-file.php

The manual says:

> This function checks to ensure that the file designated by filename is a
> valid upload file (meaning that it was uploaded via PHP's HTTP POST
> upload mechanism). If the file is valid, it will be moved to the
> filename given by destination.

Does the path to temp folder has changed ?
Permission problem somewhere in the path ?

May be try:
cd /var/www/rlmp/typo3org/wiki.typo3.org/www/
chmod -R 777 images/
# add setgroup bit to folder to keep permissions/owner of new subfolder
# and files, linux only
find images/ -type d -exec chmod g+s {} \;
# gives content to web user, www-data is an example of apache user:group
chown -R www-data:www-data images/
-- 
Regards,
Sylvain -- TYPO3 DocTEAM.
France.



More information about the TYPO3-project-documentation mailing list