This topic is locked
[SOLVED]

Open file from the URL link

4/8/2022 5:02:04 PM
PHPRunner General questions
L
LandonH author

I have an application that has the file URL link and I am wanting to be able to click the link and open the file foe vewing.
The url is correct and I can paste it into windows file explorer and it will open the file just fine.
I have pushed every option I can think of will no success.
Any help or direction will be appreciated.

Example URL: file://dmtnpmaxapp761/DOCLINKS/attachments/1837_00_002Asset_Move_PM(833-Suspended).pdf

Thanks
Landon H

img alt

Admin 4/8/2022

You cannot make it work this way. Links like this will only work in Windows explorer but won't work in the web browser. Web browser needs HTTP links.

L
LandonH author 4/11/2022

Ok Thanks

Another question.

I discovered that when selecting the hyperlink option that if automatically sets the file:// prefix.

Can that be altered to have additional /// added to it.

This format works Example URL: file://///dmtnpmaxapp761/DOCLINKS/attachments/1837_00_002Asset_Move_PM(833-Suspended).pdf

But PHPRunner will strip any pre-existing / and default it to file:// I need file:///// for this to work.

I have this sql code to structure the field data. concat ('file://///dmtnpmaxapp761',substring(di.urlname, 3, 250)) AS [URL2]
Returned table data example: file://///dmtnpmaxapp761\DOCLINKS\attachments\1837_00_002Asset_Move_PM(833-Suspended).pdf

PHPRunner returns this value. file://dmtnpmaxapp761/DOCLINKS/jobplandocs/PCC2010A1599136674711.pdf

Thanks
Landon

L
LandonH author 4/12/2022

I have discovered that the modern web browesers are blocking the local file urls due to security.

I did find a work around but only for my local box.

I apprecaite all the help you have provided.

I am closing this ticket.

Landon