i have problem with flags when i upload file to remote I get error code 4. SFTP soft support team answered that
So is it possible to add this flag on WinSCP?I believe this is an issue with the WinSCP client the user is using.
The client does not send the SSH_FXF_RENAME_OVERWRITE flag as part of the rename request. That flag is required for replacing an existing file on rename.
From the SSH SFTP spec:
If flags does not include SSH_FXP_RENAME_OVERWRITE, and there already
exists a file with the name specified by newpath, the server MUST
respond with SSH_FX_FILE_ALREADY_EXISTS.
They will need to delete the existing file first, or contact WinSCP to see if there is a way to add that flag to the rename request.