Project

General

Profile

REST file upload broken in 2.5?

Added by Anton Antilopa over 10 years ago

Hi,

when I use this command in Redmine 2.4, the attachment is uploaded OK (201 Created):

curl -v -k --data-binary @/attachment.zip -X POST -H "X-Redmine-API-Key: ..." -H "Content-Type: application/octet-stream" -H "Expect:" https://.../uploads.json

when I use the same command in Redmine 2.5, it returns 422 Unprocessable Entity (and empty error array). Is something changed in the API? Or could something become broken in the new release?