---
name: "HTML::Widget::Element::Upload"
section: "3pm"
platform: "linux"
package: "libhtml-widget-perl"
version: "1.11-7"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTML::Widget::Element::Upload"
---

# HTML::Widget::Element::Upload(3pm)

Upload Element

## NAME

HTML::Widget::Element::Upload - Upload Element

## SYNOPSIS

```
    my $e = $widget->element( 'Upload', 'foo' );
    $e->comment('(Required)');
    $e->label('Foo');
    $e->accept('text/html');
    $e->maxlength(1000);
    $e->size(23);
```

## DESCRIPTION

Upload Element.

Adding an Upload element automatically calls `"$widget-"`enctype('multipart/form-data')\> for you.

## METHODS

### accept

Arguments: `$type`

A comma-separated list of media types, as per `"RFC2045"`.

### prepare

### containerize

## SEE ALSO

HTML::Widget::Element

## AUTHOR

Sebastian Riedel, `"sri@oook.de"`

## LICENSE

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
