---
name: "Catalyst::Request::PartData"
section: "3pm"
platform: "linux"
package: "libcatalyst-perl"
version: "5.90132-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Catalyst::Request::PartData"
---

# Catalyst::Request::PartData(3pm)

handles file upload requests

## NAME

Catalyst::Request::Upload - handles file upload requests

## SYNOPSIS

```
    my $data_part =
```

To specify where Catalyst should put the temporary files, set the 'uploadtmp' option in the Catalyst config. If unset, Catalyst will use the system temp dir.

```
    __PACKAGE__->config( uploadtmp => '/path/to/tmpdir' );
```

See also Catalyst.

## DESCRIPTION

## ATTRIBUTES

This class defines the following immutable attributes

### raw\_data

The raw data as returned via HTTP::Body.

### name

The part name that gets extracted from the content-disposition header.

### size

The raw byte count (over http) of the data.  This is not the same as the character length

### headers

An HTTP::Headers object that represents the submitted headers of the POST.  This object will handle the following methods:

*content\_type*

*content\_encoding*

*content\_type\_charset*

These three methods are the same as methods described in HTTP::Headers.

## METHODS

### build\_from\_part\_data

Factory method to build an object from part data returned by HTTP::Body

### part\_data\_has\_complex\_headers

Returns true if there more than one header (indicates the part data is complex and contains content type and encoding information.).

## AUTHORS

Catalyst Contributors, see Catalyst.pm

## COPYRIGHT

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