Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error uploading attachment using /wiki/rest/api/content/{id}/child/attachment

SiDawg
Contributor
August 24, 2023

I'm getting error response below:

{"statusCode":500,"message":"com.atlassian.confluence.pages.persistence.dao.filesystem.AttachmentDataFileSystemException: Cannot save attachment data for attachment 239XXXX191 into Media because Failure{cause=null, reason=BAD_STATUS, retryAfter=null, message='', httpStatusCode=404}"}

The file (a JPG image) is actually appearing in the UI, along with correct kb size reported, but the actual file can not be opened or previewed? This API has been working for me in the past on thousands of image files, but I haven't used the API in a few months. Has anything changed? It's one of the old API's so I suspect not: and it doesn't say it's been deprecated yet?

1 answer

1 accepted

1 vote
Answer accepted
SiDawg
Contributor
August 24, 2023

Sorry i just realised i created in wrong area :/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Upcoming Confluence Events