The browser does not allow web servers to read the local file system. Keep in mind, this has been explained to you several time in your similar threads. The user must select the file not the web server.
Your approach will not work. Asking the same question across multiple threads is not going to change answer. A web browser cannot read files on the user's computer. The user must upload the file to the web server.
Member
75 Points
513 Posts
Not allowed to load local resource
Oct 05, 2019 04:35 PM|zhyanadil.it@gmail.com|LINK
i have this error
Not allowed to load local resource: file:///C:/temp/p3.html
i'm using google chrome browser
All-Star
53021 Points
23599 Posts
Re: Not allowed to load local resource
Oct 05, 2019 04:53 PM|mgebhard|LINK
The browser does not allow web servers to read the local file system. Keep in mind, this has been explained to you several time in your similar threads. The user must select the file not the web server.
Member
75 Points
513 Posts
Re: Not allowed to load local resource
Oct 05, 2019 04:57 PM|zhyanadil.it@gmail.com|LINK
can you explain it more clearly by example?
All-Star
53021 Points
23599 Posts
Re: Not allowed to load local resource
Oct 05, 2019 05:11 PM|mgebhard|LINK
Your approach will not work. Asking the same question across multiple threads is not going to change answer. A web browser cannot read files on the user's computer. The user must upload the file to the web server.
https://haacked.com/archive/2010/07/16/uploading-files-with-aspnetmvc.aspx/
If you are trying to do something else, then you'll need to explain the problem you are trying to solve clearly.
Member
75 Points
513 Posts
Re: Not allowed to load local resource
Oct 05, 2019 05:28 PM|zhyanadil.it@gmail.com|LINK
but i don't want to upload file into the server i want the file in local d
All-Star
58174 Points
15647 Posts
Re: Not allowed to load local resource
Oct 05, 2019 07:02 PM|bruce (sqlwork.com)|LINK
You will need to switch to a version of IE and add your site to the trusted sites. Then add local files as a trusted zone.