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 个月前584 查看次数
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!

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容