# More flexible upload options for admin?

**URL:** <https://meta.discourse.org/t/more-flexible-upload-options-for-admin/118985>\
**Category:** Feature\
**Created:** [29.Май.2019 12:23:42 UTC](https://meta.discourse.org/t/more-flexible-upload-options-for-admin/118985 "2019-05-29T12:23:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hawm](https://avatars.discourse-cdn.com/v4/letter/h/f07891/32.png) [@hawm](https://meta.discourse.org/u/hawm)\
**Post date:** [30.Май.2019 12:33:31 UTC](https://meta.discourse.org/t/more-flexible-upload-options-for-admin/118985/5 "2019-05-30T12:33:31Z")

</div>

Yes, i already install the component and actually it is working not bad.  
What i mean about “too basic” is the component still restrict the web editor only.

The code below i guess it will only disable the upload or reply placeholder on the web editor(if i was wrong that i have no question with the component, ignore below).  
[https://github.com/tshenry/discourse-restrict-uploads/blob/master/common/head\_tag.html](https://github.com/tshenry/discourse-restrict-uploads/blob/master/common/head_tag.html)

I know the upload using [Upload API](https://docs.discourse.org/#tag/Upload), so somebody which familiar with network programming may construct some HTTP requests(i dont know if some security like CORS can protect it) to bypass the component then upload file(even though the uploaded is harmless, but any upload by user are not our expected).

So, restrict the Upload API `type` field in the back-end may improve it? I am newbie to Discourse and programming.  
Thanks.

---

_[View the full topic](https://meta.discourse.org/t/more-flexible-upload-options-for-admin/118985)._
