Hi, I try to upload image size 13mb via media-field to my REST API but it show the Error “Maximum request size exceeded”
I think it error in Jigx self before sent a Blob binary to the API because I try to upload via Postman it work fine.
Step reproduce;
- This my Jigx form
// demo-upload-file.jigx
title: DEMO UPLOAD FILE
type: jig.default
children:
- type: component.form
instanceId: form-media
options:
children:
- type: component.media-field
instanceId: media-field
options:
maximumFileSize: =20 * 1024 * 1024
mediaType: image
label: Upload Image
actions:
- children:
- type: action.execute-entity
options:
title: Upload Image
provider: DATA_PROVIDER_REST
function: stub-upload-api
functionParameters:
file: =@ctx.components.media-field.state.blob
entity: uploadImage
method: create
goBack: previous
- and this Rest function I use any URL now since it got the error before call that URL
// stub-upload-api.jigx
provider: DATA_PROVIDER_REST
method: POST
url: www.google.com
parameters:
file:
location: body
required: true
type: image
- upload image, any image with size 13mb or larger.