Questions tagged [knox-amazon-s3-client]

Use this tag for questions related to the js library knox: a node.js plugin for Amazon S3

This open source project (hosted on github) is an client for

Main features (as described on the project site) :

  • Familiar API (client.get(), client.put(), etc.)
  • Very Node-like low-level request capabilities via http.Client
  • Higher-level API with client.putStream(), client.getFile(), etc.
  • Copying and multi-file delete support
  • Streaming file upload and direct stream-piping support

Knox can be installed with npm install knox

88 questions
0
votes
1 answer

NodeJS File Upload to Amazon S3 Store Mapping to Database

Im looking at Knox S3 library. In my web app, users are allowed to upload files. Im thinking of using Amazon S3. In Knox, how to map the file uploaded to the user? Let say I want to know the files that a user uploaded. This will be stored in…
JR Galia
  • 17,229
  • 19
  • 92
  • 144
0
votes
2 answers

NodeJS: Uploading PDF to S3 via Knox; putFile returns 505

I'm trying to upload a PDF to an S3 bucket using the Knox library, but I keep getting 505 errors and the PDFs won't save. My code: // all of this works well var knox = require('knox'); var client =…
Philoktetes
  • 220
  • 4
  • 10
0
votes
1 answer

knox putFile returns 403

I am getting a 403 error when I attempt to use knox putFile. The odd thing is that it works fine for me when I try it on my local machine, but when it's run from an EC2 instance, I get the 403. Sometimes this also causes an ECONNRESET or EPIPE…
0
votes
2 answers

Strange stream behaviour node.js/knox

I have been working on the answer from this question located here How to make a socket a stream? To connect https response to S3 after imagemagick. As per loganfsmyth recommendation I commented the req.end(image) line however when I attempt to…
0
votes
1 answer

showing thumbnail/pictures from S3 after authentification

I am new to S3. My understanding of s3 is that the browser requests for an image, then the server will have to connect to s3 get the image as though it is a file system, get the stream and send the output to the browser. I am wondering if there is…
coool
  • 8,085
  • 12
  • 60
  • 80
0
votes
1 answer

How to consume response from Knox module?

I am using the Knox S3 module, but when I eventually get the file, the resulting file is corrupt. Am I using Knox incorrectly? var data; client.getFile(path, function(err, file) { file.on('data', function(chunk) { data…
Benny
  • 3,899
  • 8
  • 46
  • 81
0
votes
2 answers

Turn on Server-side encryption and Get Object Version in Amazon S3 with knox and nodejs

So far I've been able to successfully use node.js, express, and knox to add/update/delete/retrieve objects in Amazon S3. Trying to move things to the next level I'm trying to figure out how to use knox (if it's possible) to do two things: 1) Set the…
Kelly Ford
  • 318
  • 2
  • 8
-1
votes
1 answer

statusCode 403 using knox in node.js

I am using knox from windows and my url was creating problem. I was getting 403. I found that an issue exist on knox running from windows OS. So included the workaround in client.js as mentioned in https://github.com/LearnBoost/knox/issues/56 Added…
user644745
  • 5,673
  • 9
  • 54
  • 80
-1
votes
1 answer

Upload 20 million images to s3 bucket using URL

I want to upload 20 million images to S3 bucket. I am using the following code. s3.putObject(objectParams, (err, data) => { if (err) { reject(err); } else { resolve(data); } I have…
ash007
  • 311
  • 4
  • 24
-1
votes
1 answer

How to use gm(graphicsmagick) or imagemagick with stream? NodeJS

I don't know how to use it, even though I had research but it still not work fs.rename(tmpFile, nFile, function(){ var stream = fs.createReadStream(nFile); var req = knoxClient.putStream(stream, fName, { 'Content-type':…
-1
votes
1 answer

Keep getting function error not sure why

Not sure what I am doing incorrectly here... I keep getting this error when trying to upload a video (multipart) from android to AmazonS3 using knox library on nodejs... I am using the async library as well to wait for the video to finish uploading…
Lion789
  • 4,402
  • 12
  • 58
  • 96
-1
votes
1 answer

How to access images manipulations from Amazon s3 in iphone app

I am currently using Amazon S3 server, in that i am able to upload images from iPhone. Is there a possibility to manipulate (cropping, transformations, effects, face detection) the images that i get from amazon server.
-4
votes
1 answer

How to upload a file to amazon s3 through angular 5?

i'm just trying to upload a file to amazon s3 in angular 5 app but ,i did't find any way for it .Any help on this issue?
1 2 3 4 5
6