From 460d3054540b0cef11ce67cd86cc352f7b709ca6 Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Sat, 24 Mar 2007 15:09:48 +0000 Subject: [PATCH] Magically support more file formats, heh heh. git-svn-id: http://svn.simon-cozens.org/memories/trunk@45 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- Memories/Photo.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Memories/Photo.pm b/Memories/Photo.pm index a497600..14d968b 100644 --- a/Memories/Photo.pm +++ b/Memories/Photo.pm @@ -96,7 +96,7 @@ sub upload_file { warn "$filename is a $res\n"; if ($res =~ m{/x-zip} or $offered_name =~ /t(ar\.)?gz$/i) { return $self->upload_archive($r, $filename); - } elsif ($offered_name =~ /\.(raw|nef)/i) { + } elsif ($offered_name =~ /\.(raw|nef|dng|cr2)/i) { return $self->upload_raw($r, $filename, $offered_name); } elsif ($res =~ m{image/jpeg}) { return $self->upload_jpeg($r, $filename, $offered_name); -- 2.39.5