Is your feature request related to a problem? Please describe.
When pasting an image in to a mail we store it in the <img> src attribute as a data URL.
`<img src="data:image/png;base64,iVBO...`
- Given:
- Composing HTML mail with large inline attachment
- When
- Then
- A draft is saved continuously (with some denounce)
- The send draft text is large because data URL is part of the HTML
Describe the solution you'd like
When saving the draft for the first time, upload the inline attachments to the server and replace references to data URLs to the attachment URLs.
And from then on only use the attachment ULRs in the HTML source.
Describe alternatives you've considered
Keeping as is if handling life cycle of separately uploaded inline attachments is not to complicated.
But I assume we already have similar handling for regular attachments there this would only reuse the mechanism we already have in place.
Additional context
Relates with #13535 and might be worth tackling together (or at least with each other in mind), because the implementations would be touch the same code.
Is your feature request related to a problem? Please describe.
When pasting an image in to a mail we store it in the
<img>srcattribute as a data URL.- The send draft text is large because data URL is part of the HTML
Describe the solution you'd like
When saving the draft for the first time, upload the inline attachments to the server and replace references to data URLs to the attachment URLs.
And from then on only use the attachment ULRs in the HTML source.
Describe alternatives you've considered
Keeping as is if handling life cycle of separately uploaded inline attachments is not to complicated.
But I assume we already have similar handling for regular attachments there this would only reuse the mechanism we already have in place.
Additional context
Relates with #13535 and might be worth tackling together (or at least with each other in mind), because the implementations would be touch the same code.