# Upload dialog is image only, but file uploads are allowed

**URL:** https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720
**Category:** Bug
**Created:** [October 18, 2016, 11:59pm UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720 "2016-10-18T23:59:26Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 18, 2016, 11:59pm UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/1 "2016-10-18T23:59:26Z")

</div>

Just got a report of an issue at Stonehearth, it seems clicking on the upload button in the post composer toolbar says “Add an image” and “select images from your device” and makes no mention of file uploads. There are multiple file types allowed, any idea why it doesn’t say “Add an image or a file” and list the allowed extensions like here at Meta?

---

<div class="post-metadata">

### Author: ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)
#### Post date: [October 19, 2016, 12:02am UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/2 "2016-10-19T00:02:30Z")

</div>

Was the phrase customized in the admin area?

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 19, 2016, 12:03am UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/3 "2016-10-19T00:03:02Z")

</div>

I highly doubt it, but I’m not an Admin so I can’t check. Let me ask someone who can.

Edit: Going to wait for Regis first…

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [October 19, 2016, 12:03am UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/4 "2016-10-19T00:03:19Z")

</div>

I think this copy appearing depends on the allowed extensions being modified from the default (which are all image based file extensions), can you clarify @zogstrip?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [October 19, 2016, 12:14am UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/5 "2016-10-19T00:14:39Z")

</div>

If you select the “from web” radio does the “or file” then display?

On my localhost I’ve whitelisted _all_ extensions (hopefully nobody uploads an exe or bat 😉 )

I get the “or file” but as expected, no extension list..

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 19, 2016, 12:16am UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/6 "2016-10-19T00:16:12Z")

</div>

Nope: still says “Add an image”. Helper text under text field says “link to image”.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [October 19, 2016, 12:26am UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/7 "2016-10-19T00:26:38Z")

</div>

I just reset Admin → Files → authorized extensions to the default  
jpg, jpeg, png and gif

Indeed, no “or file” displayed, but there was a list.

I added “pdf”  
“or file” displayed as did the extension list.

So if you aren’t seeing “or file” then as posted there are likely only image file extensions authorized.

Why you’re not getting an extension list however, I have no idea.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 19, 2016, 12:27am UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/8 "2016-10-19T00:27:36Z")

</div>

We definately have more than images allowed, that’s where my confusion is coming from. Without the list, I can’t share everything we added, but I know for a fact `.zip`, `.log`, and `.dmp` are allowed.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 19, 2016, 4:42pm UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/9 "2016-10-19T16:42:48Z")

</div>

That was indeed a 🐛

[https://github.com/discourse/discourse/commit/9f7b529495f90d44714a77463112df48ce1f24d0](https://github.com/discourse/discourse/commit/9f7b529495f90d44714a77463112df48ce1f24d0)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [October 19, 2016, 4:44pm UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/10 "2016-10-19T16:44:30Z")

</div>

Thanks @zogstrip. Moved this to #Contribute > Bug, will report if this is still an issue after the next business deployment.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [October 19, 2016, 10:43pm UTC](https://meta.discourse.org/t/upload-dialog-is-image-only-but-file-uploads-are-allowed/51720/11 "2016-10-19T22:43:18Z")

</div>

This topic was automatically closed after 6 hours. New replies are no longer allowed.
