Yet another strange problem.
I have this code:
while (<$file>) {
print U $_;
}
close U;
Inside neat_error I have an exit so no matter what happens, exit is called.
However....the weird problem I'm encountering is that neat_error keeps being called and the error message is "Is a directory" yet the file is uploaded correctly with the correct filename (yellow.jpg) - how can that be?
I have this code:
Code:
open U, ">$cfg->{UP_DIR}/$file_name" or $tpl->neat_error(ERROR => $!, %globals); while (<$file>) {
print U $_;
}
close U;
Inside neat_error I have an exit so no matter what happens, exit is called.
However....the weird problem I'm encountering is that neat_error keeps being called and the error message is "Is a directory" yet the file is uploaded correctly with the correct filename (yellow.jpg) - how can that be?