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
질문됨 한 달 전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
전문가
답변함 한 달 전
profile picture
전문가
검토됨 한 달 전
  • 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!

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠