Mojoliciousのファイルアップロードではまった

1
No references other than a SCALAR reference can use a update column
1
2
3
4
5
6
7
my $upload = $self->param('upload');
if (ref $upload eq 'Mojo::Upload') {
  if ($upload->filename) {
    $upload->move_to(file('path', 'to', $upload->filename));
  }
  $upload = $upload->filename;
}

Comments

comments powered by Disqus