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

Error while uploading pdf file using Blazor UI application #1

Open
ajmal-yazdani opened this issue Jan 1, 2024 · 3 comments
Open

Comments

@ajmal-yazdani
Copy link

Hello,

Thanks for sharing the demo.

I am trying to run the Blazor UI Kernel Memory app where I am trying to upload the document.

Question 1. Why I need to keep the document in "Documents" folder inside solution directory?

Question 2. I am getting below error while uploading the doc.:

blazor.web.js:1 Uncaught (in promise) Error: System.InvalidOperationException: An error occurred while reading the remote stream: NotReadableError: The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.

Please suggest?

@qmatteoq
Copy link
Owner

Hello @ajmal-yazdani, I apologize for the delay but I missed the notification!

Question 1: the reason is that I'm copying the document into a local folder on the server and then I'm reading the stream.
Question 2: let me troubleshoot and see if I can find what's happening.

@qmatteoq
Copy link
Owner

@ajmal-yazdani can you try with the latest code I've pushed? I changed the location of the file storing from the project folder to the real folder from where the application is running

@feffe81
Copy link

feffe81 commented Mar 1, 2024

Is this working on windows, too?

The project I programmed gives me "volume not found: default"

And your code gives me: 'Directory not found: mytest.pdf/' So it treats the name as directory although the path argument is

C:\Temp\KernelMemory\bin\Debug\net8.0\Documents\mytest.pdf

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

3 participants