Topic
3 replies Latest Post - ‏2012-12-06T09:37:52Z by Paramasivan.G
Pamu
Pamu
17 Posts
ACCEPTED ANSWER

Pinned topic Unable to upload the image: Ajax request exception: Form too large

‏2012-12-05T18:56:52Z |
We are using quality of 10 in the cordova API and we tool the image with backfacing camera with default camera settings and when we uploaded
the imageData as base64 encoded string, we got the error in the WL Console with Developer Edition.

Ajax request exception: Form too large385593>200000

So is it possible to increase this limit or remove this limit. Is the limit configurable in WL Developer Edition ? Also is this configurable in the WL Enterprise Edition Server.

WL 5.0.3
Eclipse : 3.7.2
Java: 1.7

Thanks
Gutham
  • Mobiletechs
    Mobiletechs
    1 Post
    ACCEPTED ANSWER

    Re: Unable to upload the image: Ajax request exception: Form too large

    ‏2012-12-05T23:13:26Z  in response to Pamu
    I have not yet encountred this as yet...but again U are probably more entrentched in WL internals...

    what is the size of the image/file... Jetty seems to limit the maximum form content by default and U may have hit that limit...

    I think...

    :)
    Nitin
  • SystemAdmin
    SystemAdmin
    2327 Posts
    ACCEPTED ANSWER

    Re: Unable to upload the image: Ajax request exception: Form too large

    ‏2012-12-06T01:00:06Z  in response to Pamu
    It looks like you're running into the default form size limit for Jetty. Here are instructions for changing it - http://wiki.eclipse.org/Jetty/Howto/Configure_Form_Size

    Dave
  • Paramasivan.G
    Paramasivan.G
    33 Posts
    ACCEPTED ANSWER

    Re: Unable to upload the image: Ajax request exception: Form too large

    ‏2012-12-06T09:37:52Z  in response to Pamu
    Hi Pamu,

    Try specifying the targetWidth and targetHeight in cameraOptions of the Phonegap API.

    Hope u can solve this issue.

    Refer
    http://docs.phonegap.com/en/1.0.0/phonegap_camera_camera.md.html
    Thanks
    Paramasivan G