Public bug reported:
Binary package hint: zoph
As default images are uploaded to a directory that is named after the current
date. If it does not yet exist zoph tries to create it using the function
create_dir_recursive.
That fails to check wether part of the path of the to be created directory
exists and tries to create every directory starting from "/". Since that exists
mkdir returns an error and the directory is actually NOT created for which the
upload fails. Replacing the function create_dir_recursive by
function create_dir_recursive($directory){
foreach(split('/',$directory) as $subdir) {
$nextdir="$nextdir$subdir/";
if(!is_dir($nextdir)) {
if(!create_dir($nextdir)) {
echo "Error creating: $nextdir <br>";
return 0;
}
}
}
return 1;
}
has worked for me.
Thanks!
Wilfried
** Affects: zoph (Ubuntu)
Importance: Undecided
Status: Unconfirmed
--
zoph: importing images does not work
https://launchpad.net/bugs/90398
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs