Open 0x213F opened 1 month ago
@0x213F we recently added the resolveUrl
method. This way, you could use a custom protocol in uploadFile
, like s3://<bucket>/<object>
, and then resolve this (sign it) in resolveUrl
. Hope this makes sense
@matthewlipski I think we should add an example for s3 and signing urls
Is your feature request related to a problem? Please describe. I'm using a signed URL file upload, so whatever URL is returned to the Blocknote component is only valid for a short while. When saving the Blocknote component to our API server, we need to save not the file URL, but rather the file UUID we use in our system.
Describe the solution you'd like The
fileUpload
function should return not one string (which is the URL), but instead a tupleurl, context
wherecontext
gets appended to `props.Describe alternatives you've considered
localStorage
workaround: