Project

General

Profile

Actions

Defect #12773

closed

Undocumented Feature: Create Description for file attachments.

Added by Michael Kling about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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?

Actions #1

Updated by Michael Kling about 11 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

Actions #2

Updated by Etienne Massip about 11 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.

Actions

Also available in: Atom PDF