I'm experiencing a critical issue with the PowerApps attachment control. My older attachment controls are working but when I try to copy and paste one or create a new one using the form trick by stealing one, I no longer get a control that's interactable.
Property Details
Here's the non-working control:
- attachmentSHItems_2:
Control: Attachments@2.3.0
Properties:
BorderColor: =If(IsEmpty(Self.Attachments),varSecondaryColor,varPrimaryColor)
Font: =Font.'Open Sans'
Height: =100
HoverBorderColor: =ColorFade(varPrimaryColor,10%)
HoverFill: =ColorFade(varPrimaryColor,85%)
ItemColor: =RGBA(255, 255, 255, 1)
ItemFill: =RGBA(56, 96, 178, 1)
ItemHoverColor: =varSecondaryTextColor
ItemHoverFill: =varColorFade35
MaxAttachmentSize: =15
MaxAttachments: =10
PaddingBottom: =5
PaddingLeft: =If(Self.DisplayMode = DisplayMode.Edit, 5, 0)
PaddingRight: =5
PaddingTop: =5
PressedColor: =RGBA(255, 255, 255, 1)
PressedFill: =ColorFade(varPrimaryColor, 35%)
Reset: =varReset
Size: =10
Tooltip: =
Width: =Parent.Width - 40
X: =30
Y: =
And here's the working one with identical properties:
- attachmentSHItems:
Control: Attachments@2.3.0
Properties:
BorderColor: =If(IsEmpty(Self.Attachments),varSecondaryColor,varPrimaryColor)
Font: =Font.'Open Sans'
Height: =100
HoverBorderColor: =ColorFade(varPrimaryColor,10%)
HoverFill: =ColorFade(varPrimaryColor,85%)
ItemColor: =RGBA(255, 255, 255, 1)
ItemFill: =RGBA(56, 96, 178, 1)
ItemHoverColor: =varSecondaryTextColor
ItemHoverFill: =varColorFade35
MaxAttachmentSize: =15
MaxAttachments: =10
PaddingBottom: =5
PaddingLeft: =If(Self.DisplayMode = DisplayMode.Edit, 5, 0)
PaddingRight: =5
PaddingTop: =5
PressedColor: =RGBA(255, 255, 255, 1)
PressedFill: =ColorFade(varPrimaryColor, 35%)
Reset: =varReset
Size: =10
Tooltip: =
Width: =Parent.Width - 40
X: =30
Y: =
Impact
This is a critical issue as our app relies heavily on file attachments. The traditional PowerApps hack of using a form to get an attachment control has worked for years, but appears to be failing in certain instances now.
Questions
- Has anyone else experienced attachment controls not displaying the "Attach file" button?
- Are there any known workarounds for this issue?
- Is this a known bug in the latest PowerApps release?
Any help would be greatly appreciated as this is blocking our deployment.