Hi,
I want to fetch/ retrieve all files present in S3 bucket and display them on the screen.
I have created one Server action and there using, Objects_List from S3. But I am not understanding how to display that in the screen now.
And when I debugged that in network tab in the browser, I am getting only 1st file data, not more than that.
Please help to resolve this.
Hi Priya,
To display images on the screen you can check this post:
https://www.outsystems.com/forums/discussion/39963/binary-data-to-image-display-in-web-page/
for videos you can check this post:
https://www.outsystems.com/forums/discussion/48607/how-can-i-show-the-video-on-the-web-app-from-database/
Regards,
Luis Oliveira
Hi Luis,
Thanks for responding. If you can help me what to use in main screen so the output will be visible. The "List" which I have used (visible in the screenshot also) is not showing on main screen. It's all blank.
I am confused here.
Priya
You can use Object_GetPreSignedUrl function in the same library. You should get the list of files first and loop objects from the response. While looping objects, use Object_GetPreSignedUrl function and get a temporary public URL for objects. You can set expiration times for pre-signed URLs. You can use public URL to show images and videos.
I hope it works for you.