# InputFile

## Description

This object represents the contents of a file to be uploaded. Must be posted using multipart/form-data in the usual way that files are uploaded via the browser.




## Location

- `from aiogram.types import InputFile`
- `from aiogram.api.types import InputFile`
- `from aiogram.api.types.input_file import InputFile`

## Related pages:

- [Official documentation](https://core.telegram.org/bots/api#inputfile)
- [How to upload file?](../upload_file.md)
