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
gefragt vor einem Monat583 Aufrufe
1 Antwort
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor einem Monat
profile picture
EXPERTE
überprüft vor einem Monat
  • 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!

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen