# Insert placeholder text in post while uploading

**URL:** https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682
**Category:** UX
**Tags:** uploads
**Created:** [August 29, 2015, 3:12pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682 "2015-08-29T15:12:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [August 29, 2015, 3:12pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/1 "2015-08-29T15:12:44Z")

</div>

GitHub’s upload dialog has a handy placeholder in the editor while your upload is being processed:

 ![](https://global.discourse-cdn.com/meta/original/3X/0/1/015af7b242dd67c55fb68c467986788bbe98b7c7.png) 

 ![](https://global.discourse-cdn.com/meta/original/3X/4/0/409c6df5bb284e90ce85c7de21fd446a5232f068.png) 

In Discourse I tend to take my fingers off the keyboard as long as I’m downloading something, because the download link will be inserted wherever my cursor is at the time.

---

<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: [August 29, 2015, 8:23pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/2 "2015-08-29T20:23:47Z")

</div>

Sure, not a bad idea, up to @zogstrip. If it is hard may need to wait for a future release.

---

<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: [September 9, 2015, 9:15pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/3 "2015-09-09T21:15:33Z")

</div>

Just pushed the upload placeholder 🐦

[https://github.com/discourse/discourse/commit/38cb72b3294230caee2ab7f11b8f90c43b68969d](https://github.com/discourse/discourse/commit/38cb72b3294230caee2ab7f11b8f90c43b68969d)

---

<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: [September 9, 2015, 10:41pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/4 "2015-09-09T22:41:10Z")

</div>

Works! Looks like this:

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

Very nice improvement, excellent suggestion @erlend_sh

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [September 10, 2015, 9:14am UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/5 "2015-09-10T09:14:37Z")

</div>

Fantastic!

Funnily enough I think your server was running an update of sorts just now, because my first test pic uploaded perfectly, but then the updates were constantly stalling, both here and on Try (page loads were also slow, so I’m pretty sure it was server). Perfectly fine and snappy again now.

Because I happened to experience a longer than usual loading time, I did notice a few minor quirks, but both might be quite hard to do anything about:

- Cancelling the upload doesn’t remove the inserted upload placeholder text. I can see why this might be tricky.
- GitHub doesn’t even offer a cancel option…
- If the upload is finished in the background while the smiley selector is open, my smiley will be inserted into the image link, breaking it.
- Interestingly, following those same steps in GitHub ends with no smiley being inserted. Maybe they encountered this too, and solved it.

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [September 22, 2015, 11:19am UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/6 "2015-09-22T11:19:06Z")

</div>

Kind of edge case, but I noticed that if you’re typing something _above_ the placeholder, your typing position will be forced to the end of the placeholder when it finishes. Like:

```plaintext
I'm typing something above this image and sudd
<img src="//cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/original/3X/8/8/889493f5d072349533b284ba007ec0384f0cc2a2.jpg" width="690" height="215"> enly it's continued here.

```

---

<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: [September 22, 2015, 4:20pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/7 "2015-09-22T16:20:42Z")

</div>

> [@erlend\_sh](#):
>
> Cancelling the upload doesn’t remove the inserted upload placeholder text. I can see why this might be tricky.GitHub doesn’t even offer a cancel option…

That’s now fixed with

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

---

<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: [September 25, 2015, 3:23pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/8 "2015-09-25T15:23:53Z")

</div>

> [@erlend\_sh](#):
>
> Kind of edge case, but I noticed that if you’re typing something above the placeholder, your typing position will be forced to the end of the placeholder when it finishes.

This is now fixed 🍓

> <https://github.com/discourse/discourse/commit/9e2934f635bd23cc350a10e5ca23ca05e5aeb669>

---

<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: [December 3, 2015, 11:36pm UTC](https://meta.discourse.org/t/insert-placeholder-text-in-post-while-uploading/32682/9 "2015-12-03T23:36:05Z")

</div>


