I am looking to add rule in my canvas app to show thumbnail for every image attached in Attachments before submitting canvas app form.
This is the form made with power apps for user to collect data. and the purpose is when user add attachments, the user can see image or as admin I can see from history of records added in power apps by clicking particular record without downloading it and I can see images instead of links.
Additionally, user can add images from the gallery of user's device(recents, downloads etc. from ipad or windows). I hope I explained it as needed.
This is the form made with power apps for user to collect data. and the purpose is when user add image, the user can see image what he added or as admin I can from history of records added in power apps and I can see images instead of links.
And user can add images from the device( recents, downloads etc. from ipad or windows). I hope I explained it as needed.
@mtsts ,
You need to use your actual gallery name . . .
I referred Attachments section and getting error after that. Attached image for reference.
@mtsts ,
Please read the blog again. That code is for SharePoint Library files - there is a separate item for attachments.
Attached image for the reference.
@mtsts ,
What is it in the blog that needs clarification - it does exactly what you are referring to.
In the Power App above, as you add or remove items in the attachment control, the gallery on the right side updates with corresponding pictures and file name.
To achieve this, I added a gallery with Items property as (you will have to change name of the control):
attachControl.Attachments
I added a Image and label inside the gallery
Image: ThisItem.Value
Label: ThisItem.Name
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If this post or my previous reply was useful in other ways, please consider giving it Thumbs Up.
I could not figure out from the blog.
My question was - when I am adding attachment(shared screenshot), is it possible I can list of images instead of link while adding attachment or when I see any old record in the history of issues created with my app.
(I built a power app with SharePoint list and my app is being used to collect information.)
Hi @mtsts ,
I have a blog that may assist you here.
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
MVP (Business Applications) Visit my blog Practical Power Apps