# Any way to programming specify the qSlicerWeb Widget download file location?

**URL:** <https://discourse.slicer.org/t/any-way-to-programming-specify-the-qslicerweb-widget-download-file-location/20578>\
**Category:** Development\
**Created:** [November 11, 2021, 1:07pm UTC](https://discourse.slicer.org/t/any-way-to-programming-specify-the-qslicerweb-widget-download-file-location/20578 "2021-11-11T13:07:11Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 18, 2021, 1:36pm UTC](https://discourse.slicer.org/t/any-way-to-programming-specify-the-qslicerweb-widget-download-file-location/20578/8 "2021-11-18T13:36:31Z")

</div>

> [@episodes](#):
>
> We attempted the restful API approach that you just recommend before, one biggest problem we encountered is it will open multiple instances of slicer application

See this thread on how to open a file in an already running Slicer instance using the new WebServer module:

> [@How to load nifti file from web browser link?](https://discourse.slicer.org/t/how-to-load-nifti-file-from-web-browser-link/18664/30):
>
> The pull request to integrate the WebServer module into Slicer core is still under review: You don’t need to wait for this to be merged. You can get the WebServer module files from that branch and copy them into your \<SlicerInstallFolder\>lib\Slicer-4.13\qt-scripted-modules folder then start Slicer and open the WebServer module. It starts the web server automatically. Instead of the GUI, you can also start Slicer and start the WebServer module from the command line. After this, you can make S…

Call `slicer.app.openUrl` instead of `slicer.addp.loadFiles([...])` in the last line of the code snippet to load from a DICOMweb URL instead of a local file.

---

_[View the full topic](https://discourse.slicer.org/t/any-way-to-programming-specify-the-qslicerweb-widget-download-file-location/20578)._
