Skip to content

Commit

Permalink
fix: AttachmentDisplay use uncached url for download link (medplum#4501)
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonstreator authored May 14, 2024
1 parent 22e951a commit 7c9e063
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react/src/AttachmentDisplay/AttachmentDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export function AttachmentDisplay(props: AttachmentDisplayProps): JSX.Element |
)}
<div data-testid="download-link" style={{ padding: '2px 16px 16px 16px' }}>
<Anchor
href={url}
// use the `uncachedUrl` to download the file as the cached URL may expire by the time the user clicks the download link
href={uncachedUrl}
data-testid="attachment-details"
target="_blank"
rel="noopener noreferrer"
Expand Down

0 comments on commit 7c9e063

Please sign in to comment.