I’m working on a work project where a user can select a PDF using
elm/file and then send it to our server. Given other dependencies, we’re still using
elm/http 1.0, which doesn’t support file uploads.
My solution was to convert to a dataUri and send across a port to upload, but this isn’t ideal. On large files this can be problematic on some browsers, either locking up or simply failing.
I have another project coming up where I’ll have to send files across a port to be store as blobs in an indexedDB, so I’m looking for guidance:
Is there a better way?
If not, what’s the path forward? Add file encoding to