Permalink
Browse files

remove the limitation to only do pdfs and docs

  • Loading branch information...
rizen committed Sep 11, 2018
1 parent 1f3360f commit 303a3b7e737024ac56e729f67729ec12805ae503
Showing with 0 additions and 3 deletions.
  1. +0 −3 lib/Wing/Role/Result/S3File.pm
@@ -89,9 +89,6 @@ sub initialize {
$meta->{$key} = $value;
}
$self->metadata($meta);
unless ($meta->{FileType} ~~ ['PDF','DOC','DOCX','ODT']) {
ouch 442, 'File must be a .pdf, .doc, .docx or .odt';
}
$self->upload_file_to_s3($path, $self->filename);
$self->insert;
return $self;

0 comments on commit 303a3b7

Please sign in to comment.