Hi Community,
Since the last update, some files are not being uploaded correctly. It appears that the upload process terminates before the entire file is uploaded, which results in corrupted files.
To determine whether this sudden termination is not user-related, we want to add a popup that appears right after the upload process finishes. This way, the user can only navigate through the app once the upload is 100% complete.
To achieve this, we tried using the UploadFileRequest handler, but it only executes at the start of the upload and does not wait for the process to finish:
{
request: "crt.UploadFileRequest",
handler: async (request, next) => {
const result = await next?.handle(request);
const dialogService = new sdk.DialogService();
await dialogService.open({
message: "O upload do documento foi iniciado. Para ficheiros grandes, poderá demorar mais tempo. Por favor, confirme se foi concluído com sucesso.",
actions: [
{
key: "OK",
config: {
color: "primary",
caption: "OK"
}
}
]
});
return result;
}
},
Could you please help us solve this issue?
Thank you.
Best regards,
Pedro Pinheiro