zoph: importing images does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zoph (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
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_
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_
function create_
foreach(
$nextdir=
if(
if(
echo "Error creating: $nextdir <br>";
return 0;
}
}
}
return 1;
}
has worked for me.
Thanks!
Wilfried
I made a backport from the 7.0.2 Version of zoph for the functions create_dir and create_ dir_recursive. In the version 6.2 (now in gutsy) the are some errors with the return values. thus there is no need to change the function create_ dir_recursive completely, especially we don't need to add an additional check for existing directories.