Comments (5)
@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.
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.
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.
@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.
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)
- Add Support for AWS Textract Analyzing ID Documents feature HOT 2
- ~/.aws/credentials parsing, session layer ? HOT 5
- AWS Rekognition not working as per the docs HOT 2
- Implement automatic retries in aws-elixir
- Bug: SQS send_batch_message error encoding list of Entries HOT 5
- Need help with assuming roles with tags. HOT 11
- nxdomain errror when using AWS.Location.search_place_index_for_text HOT 7
- Loading issue with modules that shouldn't be generated: AWS.Cloudsearchdomain and AWS.Importexport (Instead of CamelCase counterparts) HOT 2
- AWS.ApiGatewayManagementApi, URL and headers with stage HOT 1
- S3 put_object returns {:error, :timeout} but uploads file correctly HOT 5
- `AWS.S3.delete_objects` content md5 header HOT 5
- SelectObjectContent response HOT 1
- `AWS.STS.assume_role_with_web_identity` should not rely on access_key_id and secret_access_key
- Error calling textractor HOT 3
- Setting endpoint to `amazonaws.com` results in different behaviour as not setting an endpoint HOT 1
- AWS.S3.get_object always returns {:error, :timeout} with hackney > 1.18.1 HOT 5
- Streaming response handling HOT 10
- `put_bucket_cors` request is incorrect HOT 5
- Setup pipeline to automatically roll out new releases upon tagging
- S3 ListParts returns wrong types HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-elixir.