You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WebException: The remote server returned an error: (422) Unprocessable Entity.
RedmineException: Invalid or missing attribute parameters: Attachment extension is not allowed
Poking around in this function in InternalRedmineApiWebClient.cs:
public ApiResponseMessage Upload(string address, byte[] data, RequestOptions requestOptions = null)
{
var content = new ByteArrayApiRequestMessageContent(data);
return HandleRequest(address, HttpVerbs.**UPLOAD**, requestOptions, content);
}
The Redmine REST API documentation says a POST should be used to upload a file. Should it be POST instead of UPLOAD?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm trying this:
When I do so, I get an exception:
Poking around in this function in InternalRedmineApiWebClient.cs:
The Redmine REST API documentation says a POST should be used to upload a file. Should it be POST instead of UPLOAD?
Beta Was this translation helpful? Give feedback.
All reactions