Now inserts warning into the log file and returns no filename if a file could not be written due to permission or directory problem.

This commit is contained in:
JT Smith 2002-06-06 00:34:42 +00:00
parent d4009e3de8
commit 76f7526762

View file

@ -432,6 +432,8 @@ sub save {
close($file);
_createThumbnail($_[0],$_[2]);
} else {
WebGUI::ErrorHandler::warn("Couldn't open file ".$_[0]->getPath." for writing.");
$_[0]->{_filename} = "";
return "";
}
return $_[0]->getFilename;