Coder Social home page Coder Social logo

awssum-amazon-s3's Introduction

awssum-amazon-s3's People

Contributors

chilts avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

awssum-amazon-s3's Issues

RequestTimeout Issue

When i tried s3 upload, i am getting RequestTimeout error. I have been using the exact code in the README file.

    Code: 'RequestTimeout',
    Message: 'Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.',

How to forcefully close readable stream from GetObject ?

Hello, is it possible to forcefully close readable stream from GetObject method
without getting all the data from it?

If the stream not drained it won't get closed automatically by itself, is it possible to somehow close it forcefully?

s3.GetObject(options, { stream : true }, function(err, data) {
  if(somethingBadHappanedInMyApplicationAndIDontWantToReadDataAnymore){
    data.Stream.closeForcefully()
  }
});

Post Object Restore

Since you requested I make a ticket here, here it is. I actually need this functionality now, so I went ahead and added this to the existing s3-config.js, but I have yet to test it. If you notice any bugs, please let me know.

    // Post Object Restore

    PostObjectRestore : {
        url : 'http://docs.amazonwebservices.com/AmazonS3/latest/API/RESTObjectPOSTrestore.html',
        // request
        method : 'POST',
        host   : hostBucket,
        path   : pathObject,
        defaults : {
            restore : undefined,
        },
        args : {
            BucketName : {
                required : true,
                type     : 'special',
            },
            restore : {
                required : true,
                type     : 'resource',
            },
            Body : {
                required : true,
                type     : 'body',
            },
        },
        addExtras : extrasContentMd5,
        // response
        extractBody : 'none',
    },

PermanentRedirect

Hi,

I'm keeping receiving this error. First time that I receive this error because I use this plugin 2 weeks ago.

{ StatusCode: 301,
  Headers:
   { 'x-amz-request-id': 'B06E11977F7586C3',
     'x-amz-id-2': 'oUewJMOl3Yy0efzCJJDk7re5iRvmQzBZOG1vVXGDcPrwP5HO8SMU29zl38QYU8Fx',
     'content-type': 'application/xml',
     'transfer-encoding': 'chunked',
     date: 'Tue, 02 Jul 2013 14:14:24 GMT',
     connection: 'close',
     server: 'AmazonS3' },
  Body:
   { Error:
      { Code: 'PermanentRedirect',
        Message: 'The bucket you are attempting to access must be addressed using the specified endpoint. Please send all future requests to this endpoint.',
        RequestId: 'B06E11977F7586C3',
        Bucket: 'statement',
        HostId: 'oUewJMOl3Yy0efzCJJDk7re5iRvmQzBZOG1vVXGDcPrwP5HO8SMU29zl38QYU8Fx',
        Endpoint: 's3.amazonaws.com' } } }

Any idea ?

Thank you.

PutObject using stream (not working)

PutObject-02-StreamingUpload.js example is not working. Looks like we are overriding the options.body in line 630 with undefined, if body is provided in args.

GetObject with streaming, hangs

I just tried to get a non existing object from S3 with stream option set to true. The error callback was activated but never finished.

To reproduce the problem, you can use the streaming example provided here.

Add support to set metadata on object (CopyObject)

Currently you cannot use the 'MetaData' property on a 'CopyObject' command. This function should be available as it allows users to add/update metadata on a file.

ie:

s3.CopyObject({
  BucketName: 'bucket', ObjectName:'sample',
  SourceBucket: 'bucket', SourceObject:'sample',
  MetadataDirective: 'REPLACE',
  MetaData: { 'working': 'yes' }
})

This can be facilitated simply by:

diff -rupN awssum-amazon-s3/config.js my-awssum-amazon-s3/config.js
--- awssum-amazon-s3/config.js  Fri Nov 15 23:20:56 2013
+++ my-awssum-amazon-s3/config.js   Fri Nov 15 22:46:53 2013
@@ -1839,8 +1839,12 @@ module.exports = {
                 type     : 'header',
                 note     : 'A comma-separated list of one or more grantees (of the format type=value). Type must be emailAddress, id or url.',
             },
+            MetaData : {
+                required : false,
+                type     : 'special',
+            },
         },
-        addExtras : extrasCopySource,
+        addExtras : [extrasCopySource, headersMetaDataHeaders]
     },

     InitiateMultipartUpload : {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.