my $input = $m->current_form()->find_input('file_name'); $input->headers( content_type => $content_type );