Project

General

Profile

Actions

Defect #43903

closed

Redmine API :: uploadAttachment issue

Added by tian liu 23 days ago. Updated 22 days ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Resolution:
Cant reproduce
Affected version:

Description

I am trying to use upload attachment API feature provided with redmine API using Postman.
Its successfully attaching and returning the token as "7354.9973a76e40ba705f59f8a091ee778d48". All fine.
But the attachment was 0KB.

My redmine version is: 6.0.3.stable

Actions #1

Updated by Holger Just 23 days ago

  • Status changed from New to Needs feedback

You can find documentation about how to upload and attach files at Rest_api.

If that does not work for your, please provide more details which allow us to reproduce your issue. At least show the exact requests and response you get. if you have access to the server, logs are also helpful.

Actions #2

Updated by tian liu 22 days ago

server logs:
I, [2026-03-25T17:54:38.370645 #1072] INFO -- : [8dcd31ea-29af-4872-a035-c7d0e08b1ccd] Started POST "/uploads.json?filename=imssearch.png" for 10.0.15.88 at 2026-03-25 17:54:38 +0800
I, [2026-03-25T17:54:38.373366 #1072] INFO -- : [8dcd31ea-29af-4872-a035-c7d0e08b1ccd] Processing by AttachmentsController#upload as JSON
I, [2026-03-25T17:54:38.373792 #1072] INFO -- : [8dcd31ea-29af-4872-a035-c7d0e08b1ccd] Parameters: {"filename"=>"imssearch.png"}
I, [2026-03-25T17:54:38.385506 #1072] INFO -- : [8dcd31ea-29af-4872-a035-c7d0e08b1ccd] Current user: xxxx (id=5)
I, [2026-03-25T17:54:38.390368 #1072] INFO -- : [8dcd31ea-29af-4872-a035-c7d0e08b1ccd] Saving attachment 'C:/redmine-6.0.3/files/2026/03/260325175438_imssearch.png' (0 bytes)
I, [2026-03-25T17:54:38.416735 #1072] INFO -- : [8dcd31ea-29af-4872-a035-c7d0e08b1ccd] Completed 201 Created in 42ms (Views: 1.2ms | ActiveRecord: 17.7ms (9 queries, 0 cached) | GC: 0.0ms)

Actions #3

Updated by tian liu 22 days ago

I was resolve this problem.
Thanks.

Actions #4

Updated by Holger Just 22 days ago

  • Status changed from Needs feedback to Closed
  • Resolution set to Cant reproduce

Thanks for your feedback.

Actions

Also available in: Atom PDF