rard-file-base64
v1.0.4
Published
This component receives a loaded file and returns its Base64
Downloads
5
Readme
rard-file-base64
Este componente permite detectar o Base64 de qualquer arquivo carregado em um campo de upload.
Uso básico
import RardVueElementUpload from 'rard-get-base64-from-input-file'
const selectedFile = document.querySelector('input[type=file]').files[0]
RardGetBase64FromInputFile(selectedFile).then((_base64) => {
console.log(_base64)
})
Demostração (Demo)
Clone, configure e execute o projeto do BitBucket:
> git clone https://[email protected]/eudiasrafael/rard-file-base64.git
> cd rard-file-base64
> npm install
> npm run dev