Why does file uploaded with java s3 library have content type application/octet-stream when I access it from web even though I set the contentEncoding to text/html in the code when I upload it ?
ByteArrayInputStream contentsAsStream = new ByteArrayInputStream(contentAsBytes);
ObjectMetadata md = new ObjectMetadata();
md.setContentLength(contentAsBytes.length);
md.setContentEncoding("text/html");
s3.putObject(new PutObjectRequest(ARTIST_BUCKET_NAME, artistId, contentsAsStream, md));