Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show pdf before upload #504

Open
Johnnnnboy opened this issue Oct 16, 2024 · 1 comment
Open

show pdf before upload #504

Johnnnnboy opened this issue Oct 16, 2024 · 1 comment

Comments

@Johnnnnboy
Copy link

Johnnnnboy commented Oct 16, 2024

hi, i meet some trouble,
i want to show the pdf before upload, so when i got the PDF file, i did like that
const reader = new FileReader(); reader.readAsDataURL(files.compare); reader.onload = (e) => { console.log(e.target.result, 'reader----------'); setDisplayPdf(e.target.result); };
but it doesnt work
image

at last, i hope somebody can help me, i'll be grateful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@Johnnnnboy and others