X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=Memories%2FPhoto.pm;h=9e922f3daa3212c1de7b3e01a1763d89ad4b3358;hb=3c50d5c471334d3753df8b553e9622be5096ed80;hp=a92280782c721af1d6e04987d5861d9981d9d7dd;hpb=fab613118bc37d7a6f48b60e1b4ff0e7ab0041ea;p=memories.git 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; }