The following is an untested proposed workflow to transfer the contents of a textfile to a textarea
-field such as used by Gmail Compose. It may or may not work where a simple copy-paste fails. If you really want to try to enter 100MB of text into a webform, you could try it, but please consider the comments and other answers suggesting you approach the underlying problem differently.
In Firefox, use the It's All Text! addon. With this addon, you will be able to use your favourite text editor to write in any textarea
field, including the one used for Gmail Compose.
Then the question changes to: how do I paste a large amount of text into [insert text editor]? The following assumes the original is in a file that is plain text.
Personally, I use vim
and I do !cat /path/to/file.txt
.
An approach that should work with any text editor:
- Note the name of the temporary file used by It's All Text!, for example,
/tmp/itsalltext.txt
.
- On the commandline, do
cat /path/to/file.txt >> /tmp/itasalltext.txt
.
- Reload the file in the text editor.
- Possibly edit it, if editing it, save it again and close the text editor.
Now, the contents of /path/to/file.txt
will be in the textarea.
Two problems remain:
- For sending the e-mail, you will still be limited by the maximum e-mail size mentioned elsewhere.
- Firefox and the It's All Text! addon may not perform well when transferring dozens of megabytes into a webform. I have only used it for small amounts of text (maybe up to 10 kB).