File Upload from HTML form

Hi,

I have created an HTML form, that uploads the files and sends the base 64 data through window.parent.postmessage.
On the form page, I am calling my backend web module like this:

import {myfunc} from 'backend/AuthSF';
$w.onReady(function () {
$w("#html1").onMessage( (event) => {
let receivedData = event.data;
console.log(receivedData);
myfunc(receivedData)
.then(function(){
console.log("success");

} )

.catch( (err) => {
console.log(err);
})
})
})

Here, receivedData is correct, as I can see on the console. But ‘myfunc’ is being called only for smaller files. As soon as I upload a file of 400KB, I receive error in the console.
Is there any size limit?

Thanks,
Neha