This commit is contained in:
parent
028929f85e
commit
06f71f26b6
|
|
@ -273,6 +273,16 @@ const onCameraSuccessFjBF = (file) => {
|
|||
uploadSignUrlFjBF(file)
|
||||
}
|
||||
|
||||
const generateRandomString = (length) => {
|
||||
let result = '';
|
||||
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||
const charactersLength = characters.length;
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
const uploadSignUrlFjBF = (file) => {
|
||||
const base64Data = file
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue