Skip to content

SFTP upload repeats the tail of large files #69

@littlewatchman

Description

@littlewatchman

upload of small files seems to work fine.
for some longer html I find the last few lines repeated on the uploaded file.
for a big zip file, 66.4Mb .... the uploaded version is 68.8Mb and won't unzip. But if I download it and manually truncate it at the correct length, it unzips and is 100% correct content.

so clearly it seems to be just repeating bytes to the tail during upload.

my upload is pretty basic
sftp.upload(data: data, remotePath: remote, permissions: .default)

so not sure how it can be something I'm doing wrong, but just in case, please let me know.
otherwise I'll download the source code and see if I can find out what's going on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions