# Add upload icon to menu

**URL:** <https://discuss.prosemirror.net/t/add-upload-icon-to-menu/1007>\
**Category:** Uncategorized\
**Created:** [October 18, 2017, 10:09pm UTC](https://discuss.prosemirror.net/t/add-upload-icon-to-menu/1007 "2017-10-18T22:09:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amkgo](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/amkgo/32/423_2.png) [@amkgo](https://discuss.prosemirror.net/u/amkgo)\
**Post date:** [October 18, 2017, 10:09pm UTC](https://discuss.prosemirror.net/t/add-upload-icon-to-menu/1007/1 "2017-10-18T22:09:15Z")

</div>

The [Upload handling](https://prosemirror.net/examples/upload/) example uses the `<input type="file">` to upload the image.

How can I add it(or an upload icon) as a menu item to upload the image?

Thanks

---

<div class="post-metadata">

**Author:** ![marijn](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/marijn/32/15_2.png) [@marijn](https://discuss.prosemirror.net/u/marijn)\
**Post date:** [October 19, 2017, 8:42am UTC](https://discuss.prosemirror.net/t/add-upload-icon-to-menu/1007/2 "2017-10-19T08:42:31Z")

</div>

To upload a file you’ll have to somehow get the user to click a file input element. But you can hide that and use a `<label>` element in your button to make it look like a regular menu item – see [this article](https://tympanus.net/codrops/2015/09/15/styling-customizing-file-inputs-smart-way/) for a clearer explanation.

---

<div class="post-metadata">

**Author:** ![amkgo](https://discuss.prosemirror.net/user_avatar/discuss.prosemirror.net/amkgo/32/423_2.png) [@amkgo](https://discuss.prosemirror.net/u/amkgo)\
**Post date:** [October 20, 2017, 5:16am UTC](https://discuss.prosemirror.net/t/add-upload-icon-to-menu/1007/3 "2017-10-20T05:16:11Z")

</div>

If I upload an image file and get the url link, is it possible to call the insert image function on the menu bar?
