# Show image file size limit on user#preference page

**URL:** https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707
**Category:** UX
**Created:** [29 במרץ,‏ 2016,‏ 11:34am UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707 "2016-03-29T11:34:10Z")
**Posts on this page:** 7
**Page:** 2

<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: [28 בפברואר,‏ 2017,‏ 4:53pm UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707/21 "2017-02-28T16:53:55Z")

</div>

We removed any kind of client-side warning when uploading an image since we’re trying to downsize it on the server.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28 בפברואר,‏ 2017,‏ 4:57pm UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707/22 "2017-02-28T16:57:38Z")

</div>

What happens if you try to upload a 40mb file? Does the user get any kind of feedback that it is hosed?

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [28 בפברואר,‏ 2017,‏ 5:04pm UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707/23 "2017-02-28T17:04:52Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/d/d/dd9a5e236be25bb84c1af60fe07ce3d172e9a90c.png)

This on a 20mb file, and that was a .wmv which I renamed, so it might not be a bad idea to check the file header to see if it matches the extension.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [28 בפברואר,‏ 2017,‏ 5:13pm UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707/24 "2017-02-28T17:13:01Z")

</div>

In my screenshot example above, it was a 8mb file (a photo being uploaded as profile pic) that caused the upload interface to just hang, without an error notification of any kind. Incidentally this time it was on a normal connection in Washington DC, not like the situation we ran into last summer in Tanzania. There I assumed it was mostly because of slow connections.

> [@On slow connection, often pictures are not uploaded and "Uploading..." link remains in the post](https://meta.discourse.org/t/on-slow-connection-often-pictures-are-not-uploaded-and-uploading-link-remains-in-the-post/51844):
>
> We’re introducing a group of people in East Africa to our discourse as part of a [learning exchange](https://community.namati.org/t/learning-exchange-in-kenya-with-namati-community-land-protection-clp-program-october-2016/25594?u=tobiaseigen), and I have to say discourse has been holding up well! Even on slow 2g connections I am able to keep up on discourse and manage topics and users etc. I’m even doing an upgrade right now. rocket One area where we seem to have trouble, however, is with uploading pictures. Some participants have been trying to upload one or more pictures at a time and the composer then takes a long time to upload t…

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [28 בפברואר,‏ 2017,‏ 5:16pm UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707/25 "2017-02-28T17:16:07Z")

</div>

Can you reproduce the error condition here?

---

<div class="post-metadata">

### Author: ![JagWaugh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagwaugh/32/69335_2.png) [@JagWaugh](https://meta.discourse.org/u/JagWaugh)
#### Post date: [28 בפברואר,‏ 2017,‏ 5:55pm UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707/26 "2017-02-28T17:55:39Z")

</div>

I just tried uploading the same 3.5mb .jpg to my sandbox, and here on meta. Neither complained about the upload being oversized.

On my sandbox (last update about an hour ago) the save changes button was still dim after 6 minutes (counting after the upload reached 100%).

 ![](https://global.discourse-cdn.com/meta/original/3X/1/8/186f6fab9bf6a4fd10a8560e36967feec3bd1d5f.png)

Here on meta the Save Changes button works after about 5 sec.

Did the same with an 8mb .jpg, same results (meta took about 7 sec before save changes with the larger file).

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [28 בפברואר,‏ 2017,‏ 5:57pm UTC](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707/27 "2017-02-28T17:57:22Z")

</div>

I just uploaded the 8mb profile pic here and it worked - but it did take a while to complete after the “Uploading 100%” indication was displayed, maybe 15-20 seconds. Perhaps my colleague in DC just wasn’t patient enough.

[Previous page](https://meta.discourse.org/t/show-image-file-size-limit-on-user-preference-page/41707.md?page=1)
