Coder Social home page Coder Social logo

Comments (5)

philss avatar philss commented on August 18, 2024 1

@Victoria91 this is interesting! and no problem. :)

I'm verifying if this is a bug. Apparently the Content-Type should be application/octet-stream because this operation can send the body as stream. If this is a bug, we shouldn't need to update the readme. I will let you know.

from aws-elixir.

philss avatar philss commented on August 18, 2024

Hi @Victoria91 👋

This is strange 🤔 It shouldn't fail based on file type.
I want to ask you to try two things:

  • try to use the version from the master branch instead of the one from Hex.pm (a new version will arrive soon there).
  • try to download the file using AWS.S3 after you upload it.

I suspect if there is a problem it is related with something in the access of the file.

from aws-elixir.

Victoria91 avatar Victoria91 commented on August 18, 2024

Hi, thanks for the reply!

try to use the version from the master branch instead of the one from Hex.pm

I've just checked, we already using the latest version.

try to download the file using AWS.S3 after you upload it.

I tried via AWS.S3.get_object, it returns some content, however, it's not valid (I cant' play that mp3 if I write this content to file)

from aws-elixir.

philss avatar philss commented on August 18, 2024

@Victoria91 thanks for trying out! Would you mind to check if the MD5 of the downloaded content is the same from what you are uploading? They are probably not the same, but I want just to confirm.

from aws-elixir.

Victoria91 avatar Victoria91 commented on August 18, 2024

I've just checked, actually, the body and md5 are all the same, so I was mistaken before about different body, sorry.
As I've researched via S3 console, I've notice a difference between file uploaded via AWS.S3 and ExAws.S3 - it was Content-Type metadata, in case with ExAws.S3 it was 'application/octet-stream' while with AWS.S3 it was 'text/xml'.
So once I've set Content-Type along with other headers everything works fine!
I think maybe It's better to update README to add note about Content-Type

from aws-elixir.

Related Issues (20)

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.