Defect #12773

Undocumented Feature: Create Description for file attachments.

Added by Michael Kling almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Documentation
Target version:-
Resolution:Fixed Affected version:

Description

I noticed in http://www.redmine.org/projects/redmine/wiki/Rest_api#Attaching-files that in the example xml

POST /issues.xml
<issue>
  <project_id>1</project_id>
  <subject>Creating an issue with a uploaded file</subject>
  <uploads type="array">
    <upload>
      <token>7167.ed1ccdb093229ca1bd0b043618d88743</token>
      <filename>image.png</filename>
      <content_type>image/png</content_type>
    </upload>
  </uploads>
</issue>

no "description" tag is given.

It's odd as it would be pretty straight forward to give here the possibility to add the file description - so i tried it out and it is working as expected. Adding the tag <description>Test</description> inside <upload> gives the uploaded file a description.

Unfortunatly it is not documented in the api and therefore it is not included into libraries like the https://code.google.com/p/redmine-net-api.

Can the documentation be added in the wiki?

History

#1 Updated by Michael Kling almost 5 years ago

Created a patch for the .net api and added also an issue there: https://code.google.com/p/redmine-net-api/issues/detail?id=32&q=label%3AType-Defect

#2 Updated by Etienne Massip almost 5 years ago

  • Tracker changed from Patch to Defect
  • Category changed from REST API to Documentation
  • Status changed from New to Closed
  • Resolution set to Fixed

Added the markup in the example in documentation, thanks.

Also available in: Atom PDF