Replace <> by your real table with columns. AddMedia component will get if you put "Add Picture" and take only a button from created group in Power Apps. See example below:
Step 4 - add Gallery with data
Add a new Vertical Gallery object, call it "picture_gallery" with this "Data source" property:
<Table>
Replace <Table> by your SharePoint or Dataverse table.
Step 5 - add content for a gallery
Add a new Horizontal Container PCF object, call it "ïtem_frame" with this "DropShadow" property:
DropShadow.Semilight
Add a new Image object under item_frame, call it "picture_image" with this "Image" property:
First(ThisItem.Attachments).Value
Add a new Vertical Container PCF object under item_frame, call it "content_item" with this "Gap" property:
10
Add a new Label object under content_item, call it "picture_name" with this "text" property:
ThisItem.Title
Add a new Label object under content_item, call it "picture_type" with this "text" property:
ThisItem.<Table Column>
Replace <Table Column> by your real table column for image type.
Add a new Button object under item_frame, call it "remove_button" with this "Text" property:
"REMOVE"
and OnSelect property:
Remove(<Table>,ThisItem)
Replace <Table> by your SharePoint or Dataverse table.
Step 6 - add hidden image for uploaded picture (optional)
If you have some issue with PATCH function, that save a BLANK row in your table, you can use this step.
Add a new Image object, call it "savedImage" with this "Image" property:
add_item.Media
and Visible property:
false
This is an output:
How to design it in Figma
Preview
What does it consist of?
8x Frame
10x Vector
6x Text
Procedure
Step 1 - create parent frame
Add a new Frame (F command) with vertical auto layout (SHIFT + A command) object, call it "vercont_uploader" with these properties:
Step 2- create content for a parent frame
Import a new SVG file under a "vercont_uploader" frame, call it "svg_empty_picture" with this XML code:
Add a new Text (T command) object under a "vercont_uploader" frame, call it "lbl_picture_title" with these properties:
Add a new Text (T command) object under a "vercont_uploader" frame, call it "lbl_picture_dscr" with these properties:
Step 3 - add frame for media button
Add a new Frame (F command) with vertical auto layout (SHIFT + A command) object, call it "vercont_media_frame" with these properties:
Add a new Frame (F command) with horizontal auto layout (SHIFT + A command) object, call it "addmedia_add_item" with these properties:
Add a new Text (T command) object under a "addmedia_add_item" frame, call it "Add File Item" with these properties:
Step 4 - add gallery frame
Add a new Frame (F command) with vertical auto layout (SHIFT + A command) object , call it "gall_pictures_gallery" with these properties:
Step 5 - add item under gallery frame
Add a new Frame (F command) with horizontal auto layout (SHIFT + A command) object under a "gall_pictures_gallery" frame, call it "horcont_item_frame" with these properties:
Import a new SVG file under a "horcont_item_frame" frame, call it "img_picture_image" with this XML code:
Add a new Frame (F command) with vertical auto layout (SHIFT + A command) object under a "horcont_item_frame" frame, call it "vercont_content_item" with these properties:
Add a new Text (T command) object under a "vercont_content_item" frame, call it "lbl_picture_name" with these properties:
Add a new Text (T command) object under a "vercont_content_item" frame, call it "lbl_picture_type" with these properties:
Add a new Frame (F command) with horizontal auto layout (SHIFT + A command) object under a "horcont_item_frame" frame, call it "btn_remove_button" with these properties:
Add a new Text (T command) under a "btn_remove_button" frame, call it "REMOVE" with these properties:
This is an output:
How to use it via DesignKit
Prerequisites
the designed component according to the instructions from the previous section