Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can we open network shared drives using window.showDirectoryPicker() #376

Open
ramyab03 opened this issue Jun 28, 2022 · 0 comments
Open

Comments

@ramyab03
Copy link

ramyab03 commented Jun 28, 2022

We have a requirement to open network shared drives from a link in a webpage. Is it possible to use the window.showDirectoryPicker() to open a specific network folder - on click of a link from a webpage?

We tried by passing 'options' to windows.showDirectoryPicker(options) but did not work.

          const dirPath = "\\\\global.test.com\\amr\\Jobs\\260\\260-00";
          const options = {
                       id: 'jobs',
                      startIn: dirPath,
            };
           let currentDirHandle;
          [currentDirHandle] = await window.showDirectoryPicker(options);

Got the below error
image

Can we only open system directories with showDirectoryPicker()?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant