multipart/form-data support

11 views
Skip to first unread message

Daniel Montenegro

unread,
Sep 3, 2013, 4:20:40 PM9/3/13
to grails-jax...@googlegroups.com
Hi there, sorry if this is a newbie question but I need to do a POST request with multipart/form-data with some attributes and a file to /api/myresource. Is necessary to install jersey-multipart or something?

I need something like:

@POST
@Consumes('multipart/form-data')
Response create(Myresource dto) {
  // do something
}

Thanks in advance!

Noam Tenne

unread,
Oct 6, 2013, 11:25:31 AM10/6/13
to grails-jax...@googlegroups.com
Yes, you'll need to add an explicit dependency on jersey-multipart 


--
You received this message because you are subscribed to the Google Groups "grails-jaxrs-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-jaxrs-dis...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages