First of all, very grateful for the support provided. I'm trying to attach files from a gallery and I can't. The idea is that it is attached according to the gallery ID. Can you help me?

First of all, very grateful for the support provided. I'm trying to attach files from a gallery and I can't. The idea is that it is attached according to the gallery ID. Can you help me?
Certainly! I'd be happy to help you with attaching files from a gallery in Power Apps. To achieve this, you can follow these steps:
Set up your Gallery control: Ensure that you have a gallery control on your Power Apps screen that displays the items you want to attach files to. Make sure the gallery is connected to a data source, such as a SharePoint list or a collection.
Add an Attachment control: Inside the gallery control, add an Attachment control. This control allows users to attach files directly to each item in the gallery. Make sure to bind the Attachments property of the Attachment control to a field in your data source that can store attachments (e.g., Attachments column in a SharePoint list).
Configure the Attachments control: Select the Attachment control you just added and open the properties pane. Set the Attachments property of the control to reference the appropriate field from your data source. For example, if your gallery's data source has a field called "Attachments", set the Attachments property of the control to something like ThisItem.Attachments.
Enable attachment upload: To enable users to upload attachments, make sure that the AllowAddAttachments property of the Attachment control is set to true.
That's it! With these steps, users should be able to attach files to items in the gallery. The attachments will be stored in the specified field of your data source, allowing you to view and manage them accordingly.
Remember to save and publish your Power App so that the changes take effect. Let me know if you have any further questions or need additional assistance!