Open ricardo-valero opened 3 years ago
URL.createObjectURL
API remember to call URL.revokeObjectURL()
at some point in component lifecycle or during image replacement. There is alternative strictly Base64 API but it takes a considerable more memory.But treat steps 2-5 as optional. Just make sure that your component enables someone to extend your component with such steps.
Hi, does anyone know how to create a file preview using carbon components?
https://codesandbox.io/s/fileuploader-with-preview-attempt-v88vp
Using the
img
tag works fine, but I'd appreciate some insight.