There is a problem when uploading an email attachment that is larger than the chunk size.
Expected behavior
The attachment gets fully uploaded and added to the email message.
Actual behavior
After uploading the first chunk, we get a success callback and the upload session gets terminated. The attachment does not get added to the email.

Steps to reproduce the behavior
Upload an email attachment larger than the chunk size (5 MB or custom size).