"I have an add-on for Thunderbird that archives emails in my management system. After the latest August update, on some devices, the email is not arriving complete at the server. This is the script that handles the file transmission:
var formData2 = new FormData();
formData2.append('autoriz', 'tuttok');
formData2.append('annox', annoy);
formData2.append('mesex', mesey);
formData2.append('giornox', giornoy);
formData2.append('idx', idx);
formData2.append('file', data); // 'file' truncated
fetch(url, {
method: 'POST',
body: formData2, // Pass the FormData as the request body
// Do not manually set the Content-Type, fetch does it automatically with FormData
})
.then(response => {
if (!response.ok) {
throw new Error('Error in the request: ' + response.statusText);
}
return response.text(); // Convert the response to text (or json if you expect JSON)
})
.then(responseText => {
console.log("send_email_auto2 " + responseText);
})
.catch(error => {
console.log('Error during the request:', error);
});
do you have any suggestions?