Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Connect .JPG file via link in an input field

Questions related to using nuBuilder Forte.
Post Reply
beekeeper
Posts: 3
Joined: Tue Dec 19, 2023 3:57 pm
Has thanked: 1 time

Connect .JPG file via link in an input field

Unread post 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?
kev1n
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

Unread post 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.
beekeeper
Posts: 3
Joined: Tue Dec 19, 2023 3:57 pm
Has thanked: 1 time

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

Unread post 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.
beekeeper
Posts: 3
Joined: Tue Dec 19, 2023 3:57 pm
Has thanked: 1 time

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

Unread post 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.
Post Reply