Hi @Raki ,
Why don't you let the external users go to the library and upload documents there directly? This is much easier.
In spfx, you can use PnP/PnPjs to upload files to library: https://pnp.github.io/pnpjs/sp/files/#adding-files
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.