Defect #43903
closed
Redmine API :: uploadAttachment issue
Added by tian liu 23 days ago.
Updated 22 days ago.
Resolution:
Cant reproduce
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
- 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.
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)
I was resolve this problem.
Thanks.
- Status changed from Needs feedback to Closed
- Resolution set to Cant reproduce
Thanks for your feedback.
Also available in: Atom
PDF