Access file on upload component change event

Hi again Radzen :wave:

I have an upload component in a WebAssembly PWA. Using the capture attribute, it allows uploading photos taken with the device's camera.

Prior to sending it over to the server, I would like to resize the file using RequestImageFileAsync.

"A component that receives an image file can call the RequestImageFileAsync convenience method on the file to resize the image data within the browser's JavaScript runtime before the image is streamed into the app."
Source

I was thinking of calling a custom method on the change event, but I see the method would only have access to a FileInfo object, and not the file itself.

Am I missing something? Is there a way I can achieve this?

Thank you!

Hi @damian_s,

There is no way to access the file before submit since this is not allowed by the browser.