# detectDjangoUpload

**Kind:** Function

**Source:** [`atloria-monorepo/libs/parser-core/src/openapi/multipart.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/libs/parser-core/src/openapi/multipart.ts#L279)

Django / DRF: `request.FILES`, `FileField`/`ImageField`, and the multipart parser classes.

`serializerFields` carries the view's serializer/form body when one was resolved, so the
declared upload fields name themselves. A view that only declares `MultiPartParser` is still
multipart — with no field name to state, it publishes as an any-field body.

## Signature

```ts
function detectDjangoUpload(view: string, serializerFields): MultipartBody | undefined
```

## Parameters

| Name | Type |
|---|---|
| `view` | `string` |
| `serializerFields` | `any` |

**Returns:** `MultipartBody | undefined`
