Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8380223
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:24:06+00:00 2026-06-09T16:24:06+00:00

UPDATE: got it working from the commandline after add a full access policy permissions

  • 0

UPDATE: got it working from the commandline after add a full access policy permissions to that user. Now when I do it with Node there is no error but I can’t see the files in my s3 file manager.

I keep getting an EPIPE error using Amazon’s S3 service.

I am a little stuck and unsure of how to proceed.

I am using Node.js with the Knox module.

Here is my code:

var client = knox.createClient({
    key: amazonAccessKeyId,
    secret: amazonSecretAccessKey,
    bucket: amazonBucketName
});

function moveFiles() {
    moveUploadedFile(req.files['aps-file'].path,'/aps-products.csv', this.parallel());
    moveUploadedFile(req.files['perry-craft-roof-file'].path,'/perry-craft-roof-products.csv', this.parallel());
    res.end('successful!');
}

function moveUploadedFile(srcPath, dstPath, callback) {
    client.putFile(srcPath, dstPath, { 'x-amz-acl': 'public' }, function (err) {
        if (err) {
            callback(new Error("Error uploading file for " + dstPath + ": " + err.message), srcPath);
            console.log(err);
            return;
        }

        console.log('Finished writing file ' + dstPath + ' to Amazon S3 Cloud');
        callback(null, srcPath);
    });
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:24:08+00:00Added an answer on June 9, 2026 at 4:24 pm

    Ok so these are the steps I took to resolve this problem:

    1. Installed aws commandline tool you can find it here: http://www.timkay.com/aws/
    2. Added a Full Access (Administrator Access) policy to the s3 user I created.
    3. Made sure I can write to that bucket using the command: aws put /file/to/put /new-file.
    4. Removed {'x-amz-acl': 'public' } it should be 'public-read' otherwise it will not add the files to s3 (without errors). Note that {'x-amz-acl': 'private' } works too.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got the following T-SQL code below that's working from inside of SQL Server
I would like to add an update hook to git that prevents people from
I would like to add an update hook to git that prevents people from
Update and Solution I finally got everything working after 1. Uninstalling everything ruby-related in
I've got a post-commit hook script that performs a SVN update of a working
I just released an update and got an exception report from the wild after
Update: Got this working by disabling CodeIgniter Profiler which was interfering with the Ajax
I've started working with ASP.net AJAX (finally ☺). and I've got an update panel
I've got about 25 tables that I'd like to update with random data that's
I've got an Ant task that when launched will update the version number in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.