If you are finding an issue with your Gmail and you are having an attach files button not working, Gmail error. You can try to disable flash in your browser. In order to enable flash in Gmail, toggle the “Ask First” option to enable it. If your problem persists, you can try to switch to another email client or browser. This will help you easily send and receive files from your Gmail account. Once you have solved this issue, you can send attachments to your contacts.
For more info, visit here - https://emailscrunch.com/how-to-fix-gmail-wont-attach-files-error/