fix(files): show other file types in content for create, fix sign and verify error
This commit is contained in:
parent
0b9c9906b7
commit
86095cba5c
@ -416,8 +416,11 @@ export const SignPage = () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (arrayBuffer) {
|
if (arrayBuffer) {
|
||||||
|
try {
|
||||||
files[fileName] = await convertToPdfFile(arrayBuffer, fileName)
|
files[fileName] = await convertToPdfFile(arrayBuffer, fileName)
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Not a .pdf file:', error)
|
||||||
|
}
|
||||||
const hash = await getHash(arrayBuffer)
|
const hash = await getHash(arrayBuffer)
|
||||||
if (hash) {
|
if (hash) {
|
||||||
fileHashes[fileName] = hash
|
fileHashes[fileName] = hash
|
||||||
|
@ -246,10 +246,14 @@ export const VerifyPage = () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (arrayBuffer) {
|
if (arrayBuffer) {
|
||||||
|
try {
|
||||||
files[fileName] = await convertToPdfFile(
|
files[fileName] = await convertToPdfFile(
|
||||||
arrayBuffer,
|
arrayBuffer,
|
||||||
fileName!
|
fileName!
|
||||||
)
|
)
|
||||||
|
} catch (error) {
|
||||||
|
console.error('Not a .pdf file:', error)
|
||||||
|
}
|
||||||
const hash = await getHash(arrayBuffer)
|
const hash = await getHash(arrayBuffer)
|
||||||
|
|
||||||
if (hash) {
|
if (hash) {
|
||||||
|
Loading…
Reference in New Issue
Block a user