---
title: "New in Symfony 7.1: MapUploadedFile Attribute (Symfony Blog)"
url: https://daily.dev/posts/new-in-symfony-7-1-mapuploadedfile-attribute-symfony-blog--qun6vu8fy
source_url: https://symfony.com/blog/new-in-symfony-7-1-mapuploadedfile-attribute
type: article
source: "Symfony"
published: 2024-05-09T08:01:02.965Z
updated: 2024-05-09T08:01:01.323Z
tags: ["php", "symfony"]
reading_time: 2
upvotes: 7
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# New in Symfony 7.1: MapUploadedFile Attribute (Symfony Blog)

**[Symfony](https://daily.dev/sources/symfony)** · 2 min read · 7 upvotes · 0 comments

## Summary

Symfony 7.1 introduces the new #[MapUploadedFile] attribute which allows mapping uploaded files to controller arguments. You can also apply constraints to the file for validation purposes. Additionally, you can inject a collection of files using this attribute.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://symfony.com/blog/new-in-symfony-7-1-mapuploadedfile-attribute>

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 0 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#symfony](https://daily.dev/tags/symfony)

[View this post on daily.dev](https://daily.dev/posts/new-in-symfony-7-1-mapuploadedfile-attribute-symfony-blog--qun6vu8fy)
