Plasmic page crashing when uploading large files.

Plasmic Team Please help me with my question. I want to create an upload button to be able to upload files with size for 50 mb or more.

The plasmic page crashes every time i upload a heavy file. because its encoding the file in base64.

Can i bypass the encoding & somehow send the file via api call to my backend server.

Because plasmic rest api doesn’t allow sending large files

& Yes I am using codegen…nextjs Typescript

you can decode back to binary string with globalThis.atob($state.upload.files[0].contents)