Page 1 of 1

Connect .JPG file via link in an input field

Posted: Sat Jan 27, 2024 1:11 am
by beekeeper
Is there a way to create a field that a user can put in a directory link (C:\Documents\20221122_161455.jpg) of a file and it will be seen as a link back to the file if clicked?

Re: Connect .JPG file via link in an input field

Posted: Sat Jan 27, 2024 5:46 am
by kev1n
In HTML, you can use the `file://` protocol to create a link to a local file. However, due to security restrictions in most browsers, directly linking to local files might not work as expected. It's generally better to upload files to a web server and link to them using regular web URLs.

Re: Connect .JPG file via link in an input field

Posted: Sat Jan 27, 2024 7:45 pm
by beekeeper
That is a bit disappointing, but thank you very very much for responding. The client does not want access to internet to be part of the equation. I will have to research further....maybe there is a way to set up a web server without access to internet and then connect the two so it will still use the URL's. Always fun....again thanks for your response.

Re: Connect .JPG file via link in an input field

Posted: Sat Jan 27, 2024 8:51 pm
by beekeeper
Wanted to let you know that with understanding how Apache works, I was able to make the application/browser able to store a link (http://localhost/1000000332.jpg) and then when right mouse clicked....it gave the option to go directly to the pic. Much better from a user standpoint. Again thanks for the help.