Skip to content
This repository was archived by the owner on Jul 24, 2025. It is now read-only.
This repository was archived by the owner on Jul 24, 2025. It is now read-only.

Download a file #25

@bradintheusa

Description

@bradintheusa

Does anyone have a sample to download a file? I am getting a 400 error on the redirect to Amazon

            session.get(message.attachments[0].path, {},function(e,data) {
                var attachment = fs.createWriteStream("./Activity/" + message.id + "_" + message.attachments.file_name, { flags: 'a' });
                attachment.write(data);
            });

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions