---
title: "Upload file"
method: POST
path: "/files/withFlags/{flags}"
tags: ["files"]
---

# Upload file

`POST /files/withFlags/{flags}`

Upload the attached file using multipart form enconding. Returns file id
as JSON object, or ids with filenames if multiple files are sent. ID can
be used to work on the file using the API. Uploaded file can be an XML
metadata file.

## Path parameters

- `flags` string, required

## Response `200`

OK

---

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