You must be using an old version of Vert.x
On 19/06/13 07:07, Arun Papnoi wrote:
> Hi I used file upload in vertx with groovy
> from
>
https://github.com/vert-x/vertx-examples/blob/master/src/main/groovy/simpleformupload<
https://github.com/vert-x/vertx-examples/blob/master/src/main/groovy/simpleformupload/SimpleFormUploadServer.groovy>
>
>
> and it is giving me the following error...
>
> *Exception in Groovy verticle *
> *groovy.lang.MissingMethodException: No signature of method:
> org.vertx.groovy.core.http.HttpServerRequest.uploadHandler() is applicable
> for argument types: (webapp.App$_run_closure4_closure10) *
> pls suggest..
>
>
> On Tuesday, June 18, 2013 3:42:02 PM UTC+5:30, Tim Fox wrote:
>> I've just tested the simpleformupload example in vertx-examples and it
>> works fine for me.
>>
>> On 18/06/13 09:01, expert china wrote:
>>> def rm = new RouteMatcher()
>>>
>>>
rm.post('/upload/'){ req->
>>> req.uploadHandler { upload ->
>>> upload.exceptionHandler { cause ->
>>> req.response.end(">>>>>>>>>>Upload failed");
>>> }
>>>
>>> upload.endHandler {
>>> println ">>>>>>>>>upload ok!"
>>> req.response.end("Upload successful, you should see the file in the
>> server
>>> directory");
>>> }
>>> upload.streamToFileSystem(upload.filename);
>>> println "upload handle>>>"
>>> }
>>>
>>> }
>>>
>>> I test it in vertx 2.0 CR1:
>>>
>>> upload from chrome browser, OK!
>>> upload from phonegap app, nothing upload!( client upload progress bar
>> keep
>>> in 99%, never 100%)
>>>
>>>
>>>
>>>
>>> 2013/6/18 Arun Papnoi <
arunp...@gmail.com <javascript:>>
>>>
>>>> But in case of image upload it uploads only 0 kb , not able to upload
>>>> images from examples.
>>>>
>>>>
>>>> On Monday, June 17, 2013 6:49:16 PM UTC+5:30, Tim Fox wrote:
>>>>
>>>>> On 17/06/13 14:14, Arun Papnoi wrote:
>>>>>> thanks Norman ,
>>>>>> But can you suggest some code in Groovy please.
>>>>> There are examples in the 2.0 docs
>>>>>> On Friday, June 14, 2013 5:30:50 PM UTC+5:30, Norman Maurer wrote:
>>>>>>> Checkout the vertx-example project�
>>>> For more options, visit
https://groups.google.com/groups/opt_out.
>>>>
>>>>
>>>>
>>