Error in fileDropzone

When putting image in fileDropZone i'm receiving "The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined" the configuration is running as other posts said using "{{ {...fileDropzone1.files[0], "data": fileDropzone1.value[0] } }}" in the body form parameter.

This works, but not everytime, sometimes the image goes, sometime it doesn't work, it looks like an intermittent error... There's something else that can be done to avoid this

Hi @Matheus_Tramotini_Lopes

We recently changed the fileDropzone properties to be all under .value() instead of .files and .value:

I'm wondering if this makes any difference in your app.

Also, can you share the component configuration you're using, like this screenshot:

Hi team, I'm experiencing the same error as the one posted above, currently this is working using postman, but I can't make it work in retool.

Postman setup

Retool setup


I tried sending my file with this format {{ {...fileDropzone1.files[0], "data": fileDropzone1.value[0] } }} but I'm receiving "The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined.

Now I'm trying sending the file like this {{schoolProfileGalleryUploader.value[0].base64Data}}, but I'm receiving internal server error, but again, this is working in postman, how can I make it work in retool too?

Thank you team

Hi @amilcarSanchez,

Thanks for reaching out!

Does your resource set up for 'School Data' have any authorization or other headers (content type)?

It may help to check the Postman request code:

and compare it line by line to make sure it matches with Retool's request: