# Caricamento di file con estensioni di file più lunghe viene troncato

**URL:** <https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824>\
**Category:** Bug\
**Created:** [10 Marzo 2021, 10:23pm UTC](https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824 "2021-03-10T22:23:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [17 Marzo 2021, 8:55pm UTC](https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824/5 "2021-03-17T20:55:16Z")

</div>

Volevo solo farti sapere che è stata creata una correzione per questo:

> <https://github.com/discourse/discourse/commit/44153cde18e4f4f3d3c5719e3e7c96b5954f25c8>
>
> \* FIX: Be able to handle long file extensions
> 
> Some applications have really l…ong file extensions, but if we truncate
> them weird behavior ensues.
> 
> This commit changes the file extension size from 10 characters to 255
> characters instead.
> 
> See:
> 
> https://meta.discourse.org/t/182824
> 
> \* Keep truncation at 10, but allow uppercase and dashes

Il problema che ho risolto riguardava in realtà il `-` e le lettere maiuscole nell’estensione, non la lunghezza. Il link per scaricare il file verrà comunque troncato, ma il file effettivo che scaricherai avrà l’estensione completa.

---

_[View the full topic](https://meta.discourse.org/t/uploading-files-with-longer-file-extensions-gets-truncated/182824)._
