Incorrect MimeType when sending to AS2

0

I'm trying to send a file to someone using AWS Transfer Faimly AS2 service. I'm uploading a file to s3 bucket and when I download that file I can see that MimeType is "application/edifact". When I send that file to AS2, on the log I see that MimeType is different. How do I set MimeType to correct value?

I'm using latest Java & Spring AWS libraries.

Sending file to AS2 using SDK:

client.startFileTransfer(
        builder ->
            builder
                .connectorId(connectorId)
                .sendFilePaths(bucket + "/" + key)
    );

Sending file to AS2 using CloudShell:

aws transfer start-file-transfer --connector-id c-123 --send-file-paths "/bucket/file.edifact"

AS2 log:

{
  "status-code": "COMPLETED",
  "requester-content-type": "application/octet-stream",
  "transfer-size": 2658,
  "requester-file-name": "file.edifact",
  "as2-to": "RECIPIENT_ID",
  "as2-from": "SENDER_ID",
  "as2-message-id": "asdasdasd-asdasdasdads@asdasdasd",
  "transfer-id": "asdfasd-asd-asd-as-d-asdasd",
  "connector-id": "c-123",
  "file-path": "/bucket/file.edifact",
  "timestamp": "2024-03-25T11:35:30.435458Z"
}

Ids and file paths values presented are not the actual values.

Lu
已提問 1 個月前檢視次數 583 次
1 個回答
0
已接受的答案

Hello, we have made a change that will use the /application/EDIFACT mime-type/content-type for any document sent with the .edifact file extension and /application/EDI-X12 mime-type/content-type for any document sent with the .x12 file extension. Thank you!

AWS
專家
已回答 1 個月前
profile picture
專家
已審閱 1 個月前
  • do you have any idea when this could go live? and is there any workaround for this issue?

  • Is there an estimated time frame on this? We are trying to send files and they cannot be accepted unless our metadata is 'application/EDI-X12', Is there any workaround to get them to send as this type in the mean time?

  • Hello, we have made a change that will use the /application/EDIFACT mime-type/content-type for any document sent with the .edifact file extension and /application/EDI-X12 mime-type/content-type for any document sent with the .x12 file extension. Thank you!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南