Uploading attachments
You can attach files when creating a support case or when replying to an existing case. You can attach up to 10 files, with each file up to 150 MB.
- Support Center Console
-
To upload attachments using the console
On the Create case page or in the reply section of a case, choose Choose file.
Select up to 10 files from your file picker. Each file can be up to 150 MB. Each file begins uploading immediately and the Status column displays a real-time progress bar during the upload.
When a file finishes uploading, the status changes to Upload completed and the Action column displays Remove.
After all files reach Upload completed status, complete the remaining case fields and then choose Submit.
After you submit the case, uploaded attachments appear as clickable links in the case correspondence on the Case details page.
- AWS Support API
-
You can programmatically attach files to a support case or case communication using the AWS Support API. The API uses a multipart upload flow with presigned URLs.
To upload an attachment using the API
Start the upload. Call
GetAttachmentUploadLinkswithfileNameandfileSizeBytes. The response returns anuploadId,partSizeBytes,totalParts, and a first batch of presigned upload URLs.Split and upload your file. Divide your file into segments of
partSizeBytesbytes by reading sequentially from the start of the file. The first segment corresponds topartIndex1, the second topartIndex2, and so on. The final segment may be smaller thanpartSizeBytes. PUT each segment to the presigned URL with the matchingpartIndex. Save theETagthat Amazon S3 returns for each successful PUT.Get more URLs if needed. Each call returns up to 10 URLs. If your file has more than 10 parts, call
GetAttachmentUploadLinksagain with the sameuploadId, passingnextIndexasuploadRange.startIndex. Repeat untilnextIndexis null.Report completed parts. Call
CompleteAttachmentUploadwith theuploadId,partIndex, andETagfor each part as soon as its PUT succeeds. Reporting parts immediately makes the upload resumable. If the upload is interrupted, only unreported parts need to be re-uploaded.Wait for the upload to be ready. Poll
DescribeAttachmentUploadStatusuntiluploadStatusisattachment-ready. Processing is asynchronous and may take a few minutes for larger files.Attach to a case. Pass the
uploadIdin theuploadIdsparameter ofCreateCaseorAddCommunicationToCase.
uploadId vs. attachmentId
An
uploadIdidentifies an in-progress upload session and is used with the upload operations (GetAttachmentUploadLinks,CompleteAttachmentUpload,DescribeAttachmentUploadStatus) and as input toCreateCaseorAddCommunicationToCase.An
attachmentIdis generated after the upload is committed to a case communication. UseGetAttachmentDownloadLinkwith anattachmentIdto download attachments. You can obtain theattachmentIdfrom theattachmentsfield of aCommunicationreturned byDescribeCommunications.Note
DescribeAttachmentonly supports attachments that are 5 MB or smaller. CallingDescribeAttachmentfor a larger attachment returnsInvalidParameterValueException. To download attachments larger than 5 MB, useGetAttachmentDownloadLink.Endpoints
Presigned URLs returned by these operations are served from the following domains:
Upload URLs (
GetAttachmentUploadLinks):v1---uploads---attachments---support---us-east-1.amazonaws.com.rproxy.goskope.comDownload URLs (
GetAttachmentDownloadLink):v1.downloads.attachments.support.us-east-1.amazonaws.com
If your environment restricts outbound traffic, ensure both domains are reachable.
Constraints
Maximum file size per upload: 150 MB.
Maximum upload URLs returned per call to
GetAttachmentUploadLinks: 10.Maximum number of
uploadIdsperCreateCaseorAddCommunicationToCaserequest: 10.