Can we pass image object into the request from forest admin UI

Hi Team,

Can we pass the image object to API as in request?

When we are trying to upload the image and pass the data into the request parameter then it is looking like below for the image. it should not be it should be the object of an image which we can pass to API to upload image on directory or s3 bucket.


Hey @sourabht,

This is the image in base64. And you can of course upload it like that :wink:. javascript - Uploading base64 encoded Image to Amazon S3 via Node.js - Stack Overflow

Hope this helps you,

1 Like

Hi @vince ,

i need to pass image object into the API request. how can in convert it into object?

or in forest admin is any way to do that.

is there any way to get the file on submit like below?



I don’t know why cause base64 is a norm which youy can use normally pretty much everywhere. But if you do not to convert it you can: html - How to convert Base64 String to javascript file object like as from file input form? - Stack Overflow