fix file uploading and storage test

This commit is contained in:
Graham Knop 2010-06-15 08:16:02 -05:00
parent ad19589739
commit 3be3150224
2 changed files with 25 additions and 18 deletions

View file

@ -390,7 +390,7 @@ sub addFileFromFormPost {
$filename = $session->url->makeCompliant($clientFilename);
my $filePath = $self->getPath($filename);
$attachmentCount++;
if ($upload->link($filePath)) {
if (File::Copy::move($upload->path, $filePath)) {
$self->_changeOwner($filePath);
$self->session->errorHandler->info("Got ".$upload->filename);
}