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
20
votes
5 answers

S3, Signed-URLs and Caching

I am generating signed urls on my webapp (nodejs) using the knox nodejs-library. However the issue arises, that for every request, I need to regenerate an unique GET signed url for the current user, leaving browser's cache-control out of the…
anderswelt
  • 1,482
  • 1
  • 12
  • 23
20
votes
4 answers

Stream uploading file to S3 on Node.js using formidable and (knox or aws-sdk)

I'm trying to stream upload a file submitted via a form directly to an Amazon S3 bucket, using aws-sdk or knox. Form handling is done with formidable. My question is: how do I properly use formidable with aws-sdk (or knox) using each of these…
jbmusso
  • 3,436
  • 1
  • 25
  • 36
14
votes
5 answers

Is there a way to upload to S3 from a url using node.js?

I found this question, but it doesn't seem to answer my question as I think it's still talking about local files. I want to take, say, and imgur.com link and upload it to S3 using node. Is knox capable of this or do I need to use something else? Not…
dsp_099
  • 5,801
  • 17
  • 72
  • 128
11
votes
3 answers

automatic mimetypes in javascript node.js

I'm uploading files to aws s3 in javascript, and AFAIK they all need a mimetype to function correctly. Is there a script that automatically maps filenames to mimetypes that I could use? Edit: If there's a way for amazon to automatically handle the…
Mark
  • 32,293
  • 33
  • 107
  • 137
10
votes
1 answer

Reporting upload progress from node.js

I'm writing a small node.js application that receives a multipart POST from an HTML form and pipes the incoming data to Amazon S3. The formidable module provides the multipart parsing, exposing each part as a node Stream. The knox module handles the…
cantlin
  • 3,236
  • 3
  • 21
  • 22
8
votes
1 answer

Creating S3 signed URLs in node.js

I'm using knox module to https://github.com/LearnBoost/knox to create signed URLs for files on S3, something I've done with PHP SDK before. I can delete files from my bucket, but I'm getting SignatureDoesNotMatch error when I try the generated URLs…
strada
  • 942
  • 9
  • 18
6
votes
2 answers

showing an image from amazon s3 with nodejs, expressjs and knox

I think this should be a straight forward thing, but I can't fing a solution :s I'm trying to figure out the best way to show images stored on amazon S3 on a website. Currently I'm trying to get this to work (unsuccessful) //app.js app.get('/test',…
coiso
  • 7,151
  • 12
  • 44
  • 63
6
votes
1 answer

What are the differences between knox and AWS SDK, for node.js?

...As I understand it they do the same thing: Provide access to Amazon Web Services. Can someone provide a list of differing capabilities between these two libraries? Why does knox exist if amazon already provides an offering?
Engineer
  • 8,529
  • 7
  • 65
  • 105
6
votes
3 answers

Pass configuration to controller

I am building a node.js app that will upload files to my S3 bucket using knox. I am able to interact with S3 as expected, but I would like to make my controller to receive configuration so I can dynamically construct my client with configuration…
Benny
  • 3,899
  • 8
  • 46
  • 81
5
votes
3 answers

Node.js knox s3 image retrieval

I'm trying to retrieve an image from s3 in node using the following: app.get('/photos', function(req, res, next) { var data = ''; s3.get('/tmp/DSC_0904.jpg').on('response', function(s3res){ console.log(s3res.statusCode); …
jbg
  • 993
  • 1
  • 11
  • 19
5
votes
1 answer

TypeError: Object.keys called on non-object when uploading with knox

I'm using knox (https://github.com/LearnBoost/knox) to upload a file to Amazon S3. I have just moved my node app to Amazon EC2 and have the following error when uploading with knox. I appear to have all of the libraries installed. The same code was…
Shocks
  • 808
  • 1
  • 9
  • 18
5
votes
1 answer

How to do pass-thru uploads to s3 on Heroku with node.js?

Here's my current code. I'm using express and knox, and I don't think I'm doing anything unusual, but s3.putFile is responding 400 status code but null error, and the file does not get uploaded. var express = require('express'); var knox =…
Dax Fohl
  • 10,654
  • 6
  • 46
  • 90
5
votes
1 answer

nodejs knox put to s3 results in a 403

I'm trying to upload to an Amazon s3 bucket using knox in a nodejs project but can't get past a 403 error. I've ensured that the key,secret, and bucket are properly set. I could really use some help here from those with more experience. My node code…
John Ten Cate
  • 475
  • 5
  • 16
4
votes
1 answer

Error: read ECONNRESET ExpressJS and Amazon S3

Im using Knox S3 plugin in ExpressJS web application to display image uploaded in Amazon S3. When displaying the image, I sometimes have the error below. I don't have idea on the error. What caused the error? events.js:72 throw er; //…
JR Galia
  • 17,229
  • 19
  • 92
  • 144
4
votes
3 answers

How to make a socket a stream? To connect https response to S3 after imagemagick

I am node and programming in general, and I have been really struggling with this... I want to take a https response, resize it with graphicsmagick and send it to my amazon S3 bucket. It appears that the https res is an IncomingMessage object (I…
p0pps
  • 586
  • 1
  • 4
  • 13
1
2 3 4 5 6