That is entirely dependent on file size, internet speed, computer quality, active memory occupation, number of terminals operating gmail, and email size/content. Theoretically you could upload a file to gmail just short of the speed of light, using a fiber-optic quantum computer, a blank document, with no other occupation for active memory and no one else using gmail at the time. Practically, however, it will usually take a few seconds.
Chat with our AI personalities