# Janela modal de upload com aviso personalizável / área de texto

**URL:** <https://meta.discourse.org/t/upload-modal-window-with-customisable-warning-text-area/195080>\
**Category:** Feature\
**Created:** [26 Junho , 2021 09:38 UTC](https://meta.discourse.org/t/upload-modal-window-with-customisable-warning-text-area/195080 "2021-06-26T09:38:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![andrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrei/32/205142_2.png) [@andrei](https://meta.discourse.org/u/andrei)\
**Post date:** [2 Julho , 2021 10:04 UTC](https://meta.discourse.org/t/upload-modal-window-with-customisable-warning-text-area/195080/3 "2021-07-02T10:04:46Z")

</div>

O modal de upload foi removido neste PR:

> <https://github.com/discourse/discourse/commit/a2e0da16a7534d2cb6ed4ad2cf52eee1401039ca>
>
> We want to remove completely our custom modal for uploading files in composer an…d directly trigger the system file picker.
> 
> This PR makes it happen. The fix is pretty simple since we already weren't using our custom modal on mobile. We just need to start using the same hidden \<input type="file"\> that we already use on mobile.
> 
> It seems to be pretty tricky to test opening a system modal so I haven't added new tests. We already have other tests for file uploading though. We directly trigger jquery-File-Upload plugin hooks in those tests - https://github.com/discourse/discourse/blob/3dda926cb22751beced12b427dd14657b53b6dfe/app/assets/javascripts/discourse/tests/acceptance/composer-attachment-test.js#L89.

Agora, acionamos diretamente os seletores de arquivo do sistema.

---

_[View the full topic](https://meta.discourse.org/t/upload-modal-window-with-customisable-warning-text-area/195080)._
