Giter Site home page Giter Site logo

soto-s3's People

Contributors

adam-fowler avatar noppoman avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

soto-s3's Issues

Crash in S3RequestMiddleware (due to optional bang)

https://github.com/swift-aws/s3/blob/9deea717490c08c5dac87e8b818cbdb2b227c7e6/Sources/SwiftAWSS3/S3RequestMiddleware.swift#L40

We’re getting a crash here for filenames with spaces in them.

Our fix locally is to percent encode the key, but well, we should remove this bang, it's not safe. Either throw or percent encode ourselves (possibly thus percent encoding twice, not sure if there's a logical way to prevent that).

Happy to PR, LMK what you think.

Cannot download png image from s3

Hi,
I am using SwiftAWSS3, but it cannot download image - there is an exception throw in XML parsing

let s3Client = S3(accessKeyId: "",
                      secretAccessKey: "",
                      region: Region.eucentral1,
                      endpoint: "https://apigateway.eu-central-1.amazonaws.com"
    )
let request = S3.GetObjectRequest(bucket: bucketName, key: "2017/08/image-620x826.png")
let object = try s3Client.getObject(request)
            
if let body = object.body {
     return ImageResource(data: body)
}

This code can return image when I use another ServiceProtocol in S3 client creation

 ServiceProtocol(type: .other("image"))

Do I do something wrong?

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.