# Obteniendo el tamaño del archivo de los adjuntos añadidos a las publicaciones mediante la API

**URL:** <https://meta.discourse.org/t/getting-the-file-size-of-attachments-added-to-posts-through-the-api/347934>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [19 Enero, 2025 23:27 UTC](https://meta.discourse.org/t/getting-the-file-size-of-attachments-added-to-posts-through-the-api/347934 "2025-01-19T23:27:54Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [20 Enero, 2025 17:10 UTC](https://meta.discourse.org/t/getting-the-file-size-of-attachments-added-to-posts-through-the-api/347934/2 "2025-01-20T17:10:29Z")

</div>

Bueno, hay un `UploadSerializer` que incluye el tamaño del archivo, pero no veo una forma de obtenerlo.

Las subidas/adjuntos incluyen el tamaño del archivo, pero solo en la descripción del adjunto.

¿Qué problema estás resolviendo al obtener el tamaño de archivo de una subida?

---

_[View the full topic](https://meta.discourse.org/t/getting-the-file-size-of-attachments-added-to-posts-through-the-api/347934)._
