Server connect files uploading twice on save

======== TEMPLATE BUG FORM ========

Wappler Version : 4.0.4
Operating System : Win10
Server Model: PHP
Database Type: Postgres
Hosting Type: IIS

Target connection using SFTP

Expected behavior

What do you think should happen?
When saving a server connect file, it should upload only once.

Actual behavior

What actually happens?
When saving a server connect file (ctrl+S), the upload of the file starts twice. It fails on the first attempt and succeed on the second.