From: Simon Cozens Date: Sat, 24 Mar 2007 15:09:48 +0000 (+0000) Subject: Magically support more file formats, heh heh. X-Git-Tag: 1.2+svn20070808~23 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=460d3054540b0cef11ce67cd86cc352f7b709ca6;p=memories.git Magically support more file formats, heh heh. git-svn-id: http://svn.simon-cozens.org/memories/trunk@45 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- 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);