Image Widget Accessing IFS

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pmclean
New User
Posts: 1
Joined: Tue Mar 26, 2019 11:58 am
First Name: Patrick
Last Name: McLean
Company Name: Amports
Phone: 6672247860
Address 1: 2900 S Childs Street
City: Baltimore
State / Province: Maryland
Country: United States
Contact:

Image Widget Accessing IFS

Post by pmclean »

We have a database on our IFS which houses a list of images. We are trying to have an app on ProfoundUI that lists these images visually for the user. We understand that the Image widget on ProfoundUI can access the www/profoundui/proddata folder, but is there any way the image widgets can access other folders on our IFS? If not, do you have any suggestions of other ways we can access those images on our IFS, via html or any other methods? Thanks for any help offered.
User avatar
Megan
Profound Logic Staff Member
Posts: 90
Joined: Mon Sep 11, 2017 12:15 pm
First Name: Megan
Last Name: Bond
Company Name: Profound Logic
Phone: 5623227473
State / Province: California
Zip / Postal Code: 92692
Country: United States
Contact:

Re: Image Widget Accessing IFS

Post by Megan »

Hello Patrick,

Yes! You are able to access images in other folders of your IFS. What url you use depends on where the file is located.

If it is located in your instance folder, if it is placed anywhere under the htdocs folder, you should be able to link to it, unless permissions prevent it. In the folowing screenshot you can see I am grabbing images from the /profoundui/userdata/images folder.
selectImgSrc.png
selectImgSrc.png (46.08 KiB) Viewed 1407 times
If you have a URL to an image you would like to use, you can do so by entering the complete URL, as you can see in the following screenshot.
urlImgLink.png
urlImgLink.png (28.64 KiB) Viewed 1407 times
We hope this helps!

Thanks,
~MEGAN BOND
Technical Support Specialist
support@profoundlogic.com
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Image Widget Accessing IFS

Post by Alex »

I would also add that the “image source” property is ultimately a URL. The default Profound UI server configuration only exposes /www/profoundui/htdocs for static files (including images) as URL’s.

To serve an image that resides in other parts of the IFS, you can either modify the Profound UI HTTP configuration to expose another part of the IFS, or you can serve the image dynamically using the pui.downloadURL() API. See here:

http://www.profoundlogic.com/docs/pages ... d=13664291

http://www.profoundlogic.com/docs/pages ... d=10092551
DanD
Profound User
Posts: 42
Joined: Wed Jun 14, 2017 12:06 pm
First Name: Dan
Last Name: Devoe
Company Name: Boston Warehouse Trading
State / Province: Massachusetts
Zip / Postal Code: 02062
Country: United States
Contact:

Re: Image Widget Accessing IFS

Post by DanD »

If you have images that reside in a folder outside of /www/profoundui/htdocs, you should also be able to create a symlnk (Symbolic Link).
Attachments
symlnk.jpg
symlnk.jpg (81.2 KiB) Viewed 1394 times
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests