Not sure if I'm missing something or if it's just a limitation, but I have a powerapp with a simple Gallery showing the attachments to a sharepoint list item which they're manipulating in a form. The gallery just shows the attachments as an image and then opens the attachments in a browser as the item's OnSelect property with Launch(ThisItem.AbsoluteUri) for when the users need to look more closely at the attachment.
This seems to break if the attached item's filename contains a # sign, like in the attached image here. The preview image doesn't display anything, and the launched URL doesn't convert the # sign to %23, which is what happens when opening the attachment directly from the sharepoint list item. While it seems like it would be relatively simple to do a substitution for the # sign, I can't help but think there might be other characters which would cause similar issues, so I was wondering if there was a cleaner/more correct recommendation for how to handle this.