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
posta un mese fa584 visualizzazioni
1 Risposta
0
Risposta accettata

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
ESPERTO
con risposta un mese fa
profile picture
ESPERTO
verificato un mese fa
  • 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!

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande