Project

General

Profile

Actions

Defect #17888

closed

Redmine API :: uploadAttachment issue

Added by NISSAR PULIKKIL about 11 years ago. Updated about 11 years ago.

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

0%

Estimated time:
Resolution:
Invalid
Affected version:

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

Actions #1

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..

Actions #2

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?

Actions #3

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 !

Actions

Also available in: Atom PDF