See the Content-Type header of your S3 object here:
$ curl --verbose https://modismo-aws-files.s3.eu-central-1.amazonaws.com/production/monulith.com/test.csv
* Trying 52.219.47.144:443...
* Connected to modismo-aws-files.s3.eu-central-1.amazonaws.com (52.219.47.144) port 443 (#0)
* ALPN: offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
* CAfile: /etc/ssl/cert.pem
* CApath: none
* (304) (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN: server accepted http/1.1
* Server certificate:
* subject: CN=*.s3.eu-central-1.amazonaws.com
* start date: Apr 11 00:00:00 2023 GMT
* expire date: Jan 14 23:59:59 2024 GMT
* subjectAltName: host "modismo-aws-files.s3.eu-central-1.amazonaws.com" matched cert's "*.s3.eu-central-1.amazonaws.com"
* issuer: C=US; O=Amazon; CN=Amazon RSA 2048 M01
* SSL certificate verify ok.
* using HTTP/1.1
> GET /production/monulith.com/test.csv HTTP/1.1
> Host: modismo-aws-files.s3.eu-central-1.amazonaws.com
> User-Agent: curl/7.88.1
> Accept: */*
>
< HTTP/1.1 200 OK
< x-amz-id-2: +u/p46Kbp3S0Fbq6ddzfzL6k2W0KzSaUTCn1cWnrdUmu+Bi7SupgutAwlQIbt0f23EjoIR5kXgs=
< x-amz-request-id: 4KTK9VX4W3S6340Z
< Date: Fri, 02 Jun 2023 09:08:51 GMT
< Last-Modified: Fri, 02 Jun 2023 08:30:27 GMT
< ETag: "af47916467cda9f5925839c836a42b87"
< x-amz-server-side-encryption: AES256
< x-amz-version-id: tU7EMInWBkiwKI226npoOAKj7OhMkzse
< Accept-Ranges: bytes
< Content-Type: application/vnd.ms-excel
< Server: AmazonS3
< Content-Length: 892
<
Test1,Test2,Test3
"0,9528462677","0,9985945715","0,1253541054"
"0,2492572506","0,1209077381","0,01505552428"
...
The StackOverflow link that you posted above tells you what you need to do, just set one of the accepted values for the Content-Type
header on your S3 object.
This might help: Working with object metadata - Amazon Simple Storage Service