]> git.decadent.org.uk Git - memories.git/commitdiff
Magically support more file formats, heh heh.
authorSimon Cozens <simon@simon-cozens.org>
Sat, 24 Mar 2007 15:09:48 +0000 (15:09 +0000)
committerSimon Cozens <simon@simon-cozens.org>
Sat, 24 Mar 2007 15:09:48 +0000 (15:09 +0000)
git-svn-id: http://svn.simon-cozens.org/memories/trunk@45 041978f6-d955-411f-a9d7-1d8545c9c3c7

Memories/Photo.pm

index a497600105d6461dcc75c12b9f44a8d5fd81a1a7..14d968b66fa76ff0ae44362c28632a8ac3df920c 100644 (file)
@@ -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);