简体   繁体   中英

How to access pdf file from a shared folder using javascript

I have one folder " PDFStore " shared with EVERYONE in my machine.

The code base is present in another remote machine.

I want to access the PDF file present within the folder PDFStore through Javascript from the remote machine.

so that i can open the PDF file in a new tab using Window.open() to fulfill my requirement.

When giving the path as the network path of the file, it is showing the error "Access denied" .

Please suggest how can i access the file?

I think, you can do this by providing the ip address of your local machine.

You may try with the following path

"your_ip/the_alias_name_of_the_application/the_mapping_shared_folder"

The alias name would do the trick if hosted in IIS server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM