function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ryan FrankRyan Frank 

file uploader - customizations

Does anyone know if it's possible to pass a blob in an LWC into the standard file uploader?  

We have a file that we are editing on the client side, but need to save down to the database and running into the 6MB heap size limit in apex.  We don't want asyncronous, and so we are trying to think outside of the box of other solutions.

We have also thought about a REST API call from the client side LWC, which would get us to 35MB size limit - but that exposes a token on the client side, which we don't want to do either.  

Which is why we were hoping to just have the blob on the client side and pass it to the standard file uploader so that it could do it's magic and have the limits up to 2GB.  

Any thoughts or suggestions?

Thanks!