WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

FSETSTAT called when uploading with sftp.createWriteStream #1453

@bosunolanrewaju

Description

@bosunolanrewaju

I have an SFTP server that disallows the FSETSTAT command (for security reasons, I believe), and I've been unable to upload files to the server using put. Calling sftp.createWriteStream calls fchmod method to set the write mode. If mode is not passed as an option, it defaults to 0o666, and passing null does not work.

Is there a way to upload a file from a buffer to the server without calling fchmod or chmod? The fastPut method is not an option because the source is a buffer and not a local file.

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