---
title: "Request the media file."
method: GET
path: "/custom_form_data/mediaData"
tags: ["Documents|Form data"]
---

# Request the media file.

`GET /custom_form_data/mediaData`

This interface enables you to retrieve a file by submitting the formDataId and the desired filename. When
requesting the file, it will be provided in response. This function allows users to retrieve files, such as the
attached images, from a construction report through download.

## Query parameters

- `formDataId` integer, required
- `filename` string, required

## Response `200`

Success Response:

- ComponentHttpFoundationResponse — Represents a formless response. (HTML, Text, ...)

---

[API](https://skmtc.net/geocapture/apis/geocapture-api.md) · [All operations](https://skmtc.net/geocapture/apis/geocapture-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geocapture/geocapture-api/versions/869b05603541/schema)
