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 9243083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:43:48+00:00 2026-06-18T08:43:48+00:00

My issue is to get image uploading to amazon working. I was looking for

  • 0

My issue is to get image uploading to amazon working.
I was looking for a solution that doesnt save the file on the server and then upload it to Amazon.

Googling I found pkgcloud and on the README.md it says:

Special attention has been paid so that methods are streams and
pipe-capable.

Can someone explain what that means and if it is what I am looking for?

  • 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-18T08:43:49+00:00Added an answer on June 18, 2026 at 8:43 am

    Yupp, that means you’ve found the right kind of s3 library.

    What it means is that this library exposes “streams”. Here is the API that defines a stream: http://nodejs.org/api/stream.html

    Using node’s stream interface, you can pipe any readable stream (in this case the POST’s body) to any writable stream (in this case the S3 upload).

    Here is an example of how to pipe a file upload directly to another kind of library that supports streams: How to handle POSTed files in Express.js without doing a disk write

    EDIT: Here is an example

    var pkgcloud = require('pkgcloud'),
          fs = require('fs');
    
    var s3client = pkgcloud.storage.createClient({ /* ... */ });
    
    app.post('/upload', function(req, res) {
      var s3upload = s3client.upload({
        container: 'a-container',
        remote: 'remote-file-name.txt'
      })
    
      // pipe the image data directly to S3
      req.pipe(s3upload);      
    });
    

    EDIT: To finish answering the questions that came up in the chat:

    req.end() will automatically call s3upload.end() thanks to stream magic. If the OP wants to do anything else on req’s end, he can do so easily: req.on('end', res.send("done!"))

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using MIME multipart for uploading images to server. Sometime image get distorted.
I'm uploading image files from device to a PHP server by converting the file
I get a random issue with VS2008 (although not that random several times a
I have an issue with PDO that I'd really like to get an answer
I have an issue working with Microsoft.Build.BuildEngine which supposed to get fixed modifing my
I have developed an image uploading application that uses Flash to load an image,
I'm trying to get the cropped version of an image that's pulled using ALAsset.
This is probably a simple issue but... How can I get the image to
I have been looking for a suitable image upload component for a website I'm
I am facing a very weird issue. Thing is, I made a file upload

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.