Unable to send attachment from Gmail using browser
You are right, I tried your way just a while ago and I am unable to attach file in Gmail.

If it is possible for you, instead of using Gmail from browser, download Gmail app from Play Store and your problem will be solved.