Image Widget Accessing IFS
-
- 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
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.
- 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
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.
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.
We hope this helps!
Thanks,
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.
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.
We hope this helps!
Thanks,
- 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
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
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
-
- 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
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 (81.2 KiB) Viewed 1325 times
Who is online
Users browsing this forum: No registered users and 0 guests