# How to declare a default app to open a file in the POD?

**URL:** <https://forum.solidproject.org/t/how-to-declare-a-default-app-to-open-a-file-in-the-pod/921>\
**Category:** Self Host a Solid Pod\
**Created:** [December 23, 2018, 10:15am UTC](https://forum.solidproject.org/t/how-to-declare-a-default-app-to-open-a-file-in-the-pod/921 "2018-12-23T10:15:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![linonetwo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/linonetwo/32/4039_2.png) [@linonetwo](https://forum.solidproject.org/u/linonetwo)\
**Post date:** [December 23, 2018, 10:15am UTC](https://forum.solidproject.org/t/how-to-declare-a-default-app-to-open-a-file-in-the-pod/921/1 "2018-12-23T10:15:48Z")

</div>

Likes I’m shearing a markdown file in the POD, and shear its link to my friends.

How can I declare that I prefer my user to use `https://someonline-markdowneditor.org` to open it? And let it open by that editor automatically.

If my friends wants it be opened by an app likes `solid-ide`, then they will paste this file’s URI into `solid-ide`, but if they click this URI directly in telegram, how can I choose a app for them?

---

<div class="post-metadata">

**Author:** ![bourgeoa](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/bourgeoa/32/291_2.png) [@bourgeoa](https://forum.solidproject.org/u/bourgeoa)\
**Post date:** [December 23, 2018, 2:31pm UTC](https://forum.solidproject.org/t/how-to-declare-a-default-app-to-open-a-file-in-the-pod/921/2 "2018-12-23T14:31:52Z")

</div>

I thought that file-type and/or file-extension where meant for that. Data should be agnostic of the app that create it but not the format.

May be you are looking to something else.

By the way I found that Solid uses npn mime-type in lib/resource-mapper.js. lt could be nice in solid-file-client in lieu of the table.

---

<div class="post-metadata">

**Author:** ![rimmartin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/rimmartin/32/166_2.png) [@rimmartin](https://forum.solidproject.org/u/rimmartin)\
**Post date:** [December 23, 2018, 3:41pm UTC](https://forum.solidproject.org/t/how-to-declare-a-default-app-to-open-a-file-in-the-pod/921/3 "2018-12-23T15:41:48Z")

</div>

> [@bourgeoa](#):
>
> mime-type

usage in node-solid-server is a bit broken until release/v5.0.0 becomes stable and servers upgraded to it. Currently the extension is given consideration

I see it coming; wanting to get to use it hopefully soon

---

<div class="post-metadata">

**Author:** ![A\_A](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.solidproject.org/a_a/32/786_2.png) [@A\_A](https://forum.solidproject.org/u/A_A)\
**Post date:** [March 1, 2019, 9:39pm UTC](https://forum.solidproject.org/t/how-to-declare-a-default-app-to-open-a-file-in-the-pod/921/4 "2019-03-01T21:39:25Z")

</div>

I guess that many apps will allow passing a file-link in their url, so you can send a link to the app and give it the information where the file is located.

For instance the solid-ide allows passing a url=https://…/file.ext parameter.  
e.g. [https://jeff-zucker.github.io/solid-ide/?url=https://otman.solid.community/public/test/test.txt](https://jeff-zucker.github.io/solid-ide/?url=https://otman.solid.community/public/test/test.txt)

If the app doesn’t support it, I don’t know how or even if this would be possible.
