From 0df4ac395c035b6a2968fe64ca3f5dadd8ecbd39 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 2 Apr 2007 18:50:54 +0000 Subject: [PATCH] Make it all at least work. git-svn-id: http://svn.simon-cozens.org/memories/trunk@54 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- Memories/Photo.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Memories/Photo.pm b/Memories/Photo.pm index a922807..9e922f3 100644 --- a/Memories/Photo.pm +++ b/Memories/Photo.pm @@ -1,5 +1,5 @@ package Memories::Photo; -use Apache2::Upload; +#use Apache2::Upload; use File::Basename; use File::Copy; use Archive::Any; @@ -128,10 +128,10 @@ sub upload_raw { $filename =~ /\.(.*)$/; my $format = $1; # Put the file in place + my $photo = $self->upload_jpeg($r, $jpg, $offered_name); $photo->format($format); copy($filename, Memories->config->{data_store}."/".$photo->id.".".$format); - my $photo = $self->upload_jpeg($r, $jpg, $offered_name); return $photo; } -- 2.39.5