Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Image Upload Problem - Missing a temporary folder...
Hi all,
i recently switched to a mac and now encounter a problem on a local installation i havent had before,
when i try to upload an image (locally) i get the following warning and no data is uploaded:
Missing a temporary folder, used by PHP to store uploaded files. Please consult your webhost.
I have a tmp / img directory assigned, CHMOD on both is 777 just to make sure.
Any hints are greatly appreciated, thanks in advance!
Offline
Re: Image Upload Problem - Missing a temporary folder...
It’s a different temporary folder. Not the one you set in the TXP preferences, but the one that PHP itself uses to store uploaded files. The location of this temporary directory is not the same on every webserver, so your webhost will know which one it is.
I’d revert the chmod action if I were you.
Offline
Re: Image Upload Problem - Missing a temporary folder...
Thanks Ruud.
I figured it would be the issue you adressed,
as the site is in local environment i doubt that it has to do with webhost settings.
so i looked into the config_inc.php of phpmyadmin, is that correct?
i found this and added the temp dir without any visible effect:
/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
$cfg['TempDir'] = '';
?>
should i just put a valid path in there like this?
/Applications/xampp/xamppfiles/abc…
And yeah, i will set permissions differently when it goes live :)
Offline
Re: Image Upload Problem - Missing a temporary folder...
Ah, so you’re the webhost yourself ;)
It’s the “upload_tmp_dir” setting in php.ini
Offline
Re: Image Upload Problem - Missing a temporary folder...
You`re the man :)
Thx a lot Ruud, that did the trick.
i wasn`t sure where to set this tmp directory, still pretty new to all this…
Great!
Offline