Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Connect .JPG file via link in an input field
Connect .JPG file via link in an input field
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?
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Connect .JPG file via link in an input field
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
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
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.