Project

General

Profile

Upload file via REST API

Added by Krzysztof Pobożan about 12 years ago

I get erro4 404 whlie try upload file by RESR API (upload.xml)
Im using:
curl --data-binary "@file" -H "Content-Type: application/octet-stream" -X POST -u user:passwor http://redmine/uploads.xml
In php, telnet I get the same error.
In production.log I have entry: ActionController::RoutingError (No route matches "/uploads.xml" with {:method=>:post}):

Uploads by webpage is OK.


Replies (2)

RE: Upload file via REST API - Added by Krzysztof Pobożan about 12 years ago

About your application's environment
Ruby version              1.8.7 (i386-mingw32)
RubyGems version          1.3.7
Rack version              1.0
Rails version             2.3.5
Active Record version     2.3.5
Active Resource version   2.3.5
Action Mailer version     2.3.5
Active Support version    2.3.5
Application root          F:/redmine
Environment               production
Database adapter          mysql
Database schema version   20110902000000

System: Windows2003 with Apache2 and Passenger

RE: Upload file via REST API - Added by mina Beshay over 11 years ago

make sure you use a redmine version >= 1.4.0 see this

    (1-2/2)