fmancinelli (SVN) wrote:
Author: fmancinelli
Date: 2009-04-08 23:58:20 +0200 (Wed, 08 Apr 2009)
New Revision: 18354
Modified:
platform/core/trunk/xwiki-rest/src/main/java/org/xwiki/rest/XWikiAuthentication.java
platform/core/trunk/xwiki-rest/src/main/java/org/xwiki/rest/resources/attachments/AttachmentsResource.java
Log:
XWIKI-3542: Allow attachment upload in REST API using multipart form data
+ @POST
+ @Consumes(MediaType.MULTIPART_FORM_DATA)
+ public Response addAttachment(@PathParam("wikiName") String wikiName,
@PathParam("spaceName") String spaceName,
+ @PathParam("pageName") String pageName, Multipart multipart) throws
MessagingException, IOException,
+ XWikiException
+ {
Fabio, could you change this to support uploading several files in a
single request? This would be very useful.
--
Sergiu Dumitriu
http://purl.org/net/sergiu/