Environment
- Server version:
7.1.7
- Node.js version:
v18.20.8
- npm version:
10.8.2
Description
When uploading the same file twice doing a post request:
POST <pod_url>/files/
headers: { content-type: 'image/png', slug: 'profile.png'}
data: <file>
The first response is a 201 Created, the second response is a 500 Internal Server Error:
{
"name":"InternalServerError",
"message":"Received unexpected non-HttpError: ENOTDIR: not a directory, stat \'/data/{pod_id}/files/profile.png/\'",
"statusCode":500,
"errorCode":"H500",
"details":{}
}
From the specification I saw the 'slug' header may not be supported anymore, but I would expect a 409 or similar.