locked
Not allowed to load local resource RRS feed

  • Question

  • User-1634604574 posted

    i have this error 

    Not allowed to load local resource: file:///C:/temp/p3.html

    <object><embed width='920' height='667' runat='server' src='file://c|/temp/p3.html' type='text/html' ></embed></object>

    i'm using google chrome browser

    Saturday, October 5, 2019 4:35 PM

All replies

  • User475983607 posted

    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.

    Saturday, October 5, 2019 4:53 PM
  • User-1634604574 posted

    can you explain it more clearly by example?

    Saturday, October 5, 2019 4:57 PM
  • User475983607 posted

    can you explain it more clearly by example?

    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.

    Saturday, October 5, 2019 5:11 PM
  • User-1634604574 posted

    but i don't want to upload file into the server i want the file in local d

    Saturday, October 5, 2019 5:28 PM
  • User-474980206 posted

    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.

    Saturday, October 5, 2019 7:02 PM