Defect #17888
closedRedmine API :: uploadAttachment issue
0%
Description
Hi,
I am trying to use upload attachment API feature provided with redmine API using JAVA.
Its all working good with some small size files (say less than 20KB); its successfully attaching and returning the token as "7354.9973a76e40ba705f59f8a091ee778d48". All fine.
But when I try to attach an image of around 100KB or more, its not attaching. It returns the token as "7345." and no file is been uploaded. No error was returned too.
I can manually attach the same file in redmine without any issues as my attachment file limit is 20MB.
Can anyone gives some clue on this?
My redmine version is: 2.3.1.stable
Thanks
Nissar
Updated by NISSAR PULIKKIL about 11 years ago
This is the code I am trying:
attachment = mgr.uploadAttachment(fileName, "application/ternary", new FileInputStream(file));
I tried this too by passing as byte array:
byte[] bytesFile = bos.toByteArray(); attachment = mgr.uploadAttachment(fileName, "application/ternary", bytesFile);
But no luck..
Updated by NISSAR PULIKKIL about 11 years ago
I saw same issue reported some one here too http://www.redmine.org/boards/2/topics/42425
Any response?
Updated by Etienne Massip about 11 years ago
- Status changed from New to Closed
- Priority changed from High to Normal
- Resolution set to Invalid
You should see with the java api author, this tracker is for core only, sorry !