feat: urlencoder + file in base64

This commit is contained in:
CorentinTh 2020-04-27 00:39:40 +02:00 committed by Corentin THOMASSET
parent ee4eb30ca2
commit d9f6c55a79
13 changed files with 260 additions and 21 deletions

View file

@ -8,6 +8,11 @@ const copyToClipboard = (text) => {
return result;
}
const fileIsImage = (file) => {
return file.type.split('/')[0] === 'image';
}
export {
copyToClipboard
copyToClipboard,
fileIsImage
}