# Link to local artifact file with view.qiime2.org

**URL:** <https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832>\
**Category:** Technical Support\
**Tags:** q2view\
**Created:** [May 7, 2020, 9:07pm UTC](https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832 "2020-05-07T21:07:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luke\_Thompson](https://forum.qiime2.org/user_avatar/forum.qiime2.org/luke_thompson/32/19975_2.png) [@Luke\_Thompson](https://forum.qiime2.org/u/Luke_Thompson)\
**Post date:** [May 7, 2020, 9:07pm UTC](https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832/1 "2020-05-07T21:07:09Z")

</div>

Is it possible to create a link to q2view page for a local artifact file (not a file on the web) without dragging and dropping? I see I can create a link to a [file on the web](https://view.qiime2.org/visualization/?type=html&src=https%3A%2F%2Fdocs.qiime2.org%2F2020.2%2Fdata%2Ftutorials%2Fmoving-pictures%2Fcore-metrics-results%2Funweighted_unifrac_emperor.qzv). What I would like is something similar for a local file. But when I try, for example, a URL like this:

```auto
https://view.qiime2.org/visualization/?type=html&src=file:///Users/luke/Desktop/bray_curtis_emperor.qzv

```

I get the error "TypeError: Failed to fetch".

I see that when I drag and drop a local file, the URL changes to a string not resembling the file name, for example:

```auto
https://view.qiime2.org/visualization/?type=html&src=c6e5426e-d290-4a69-bbde-1dc41c56aea3

```

Is there a way to generate that portion after "src=" without dragging and dropping?

Thanks!

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [May 19, 2020, 5:47pm UTC](https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832/2 "2020-05-19T17:47:32Z")

</div>



---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 1, 2020, 11:16pm UTC](https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832/3 "2020-06-01T23:16:06Z")

</div>

Hey @Luke_Thompson, sorry for the slow response here.

This is a great idea, but it isn't currently possible. It might be possible to engineer a new solution in q2view that would do this, but I think it might be a bit tricky (since programmatic access to the local filesystem through the browser is understandably a major security concern - you wouldn't want facebook or github to have ad hoc access to your files).

What might be possible is to specify the filepath in the URL, which would trigger a new alert to pop up in the browser - if you click something like "yes, I meant to open that file," it would trigger the file dialog and automatically open the file. The problem is that we can't get away from requiring some manual intervention, since opening the file dialog in a browser _must come from a user-originated event_. Sorry I don't have a better solution at the moment.

In the nearish-term - we are probably going to stick a local copy of q2view into q2cli, so that you'll get things like provenance viewing etc locally, but, no ETA on when that might land.

---

<div class="post-metadata">

**Author:** ![thermokarst](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/t/8e7dd6/32.png) [@thermokarst](https://forum.qiime2.org/u/thermokarst)\
**Post date:** [June 1, 2020, 11:16pm UTC](https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832/4 "2020-06-01T23:16:25Z")

</div>



---

<div class="post-metadata">

**Author:** ![Luke\_Thompson](https://forum.qiime2.org/user_avatar/forum.qiime2.org/luke_thompson/32/19975_2.png) [@Luke\_Thompson](https://forum.qiime2.org/u/Luke_Thompson)\
**Post date:** [June 11, 2020, 11:40pm UTC](https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832/5 "2020-06-11T23:40:20Z")

</div>

Thanks @thermokarst! A local version of q2view would be sweet!

---

<div class="post-metadata">

**Author:** ![system](https://forum-qiime2-org.s3.dualstack.us-west-2.amazonaws.com/original/3X/2/1/21af5fe23cb6f4579467c66a9ed94e55274ca7bd.svg) [@system](https://forum.qiime2.org/u/system)\
**Post date:** [July 13, 2020, 5:40am UTC](https://forum.qiime2.org/t/link-to-local-artifact-file-with-view-qiime2-org/14832/6 "2020-07-13T05:40:20Z")

</div>

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
