When I try to open .html file in chrome it ocassionally open repository - html

it divide my html file on 2 different files 1)is repository 2)is just some loading page
same error with pdf files but it divides on 3 files
It works in Firefox.
Google Chrome is set to be my main browser.

Maybe the version of chrome that you use don't support what you're doing but its just my random guess , you can try to use live server of some IDE like VScode and see if the problem persist.

Related

file not found error in chrome for html code

I have been trying to open html file from my desktop folder using chrome. It shows file_not_found it may be deleted or moved. But same is getting open in Edge browser. I'm using windows 10. code written in VS Code editor. Need help. I'm a beginner in programming language.
Install a live-server extension in VS code then you can serve your page from there
You can download from the extensions tab by searching live Server by ritwickdey or
use this link https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

How do I host an mhtml file on a webserver?

I want to just be able to get people to go a link to an mhtml file hosted on a server and be able to see the fully formatted webpage that you'll see when you save the file and open it in Google Chrome (Apparently IE works as well, Firefox and Microsoft Edge do not work). How do I go about doing that?
Might as well post this as an answer for whomever else gets this problem.
Upon renaming the mhtml file to an mht file, and Extractmht can be used to convert the file to an html file, which can then be hosted.
[2022 Edit]:
Alternatively, open the mhtml file in Chrome/Firefox and use an extension like Singlefile to download it as a proper html page.

How to open a windows folder when clicking on some link on a HTML page using Asp.net

I was trying this code :
Link 1
Link 2
But It is not working in Google Chrome or Firefox Browser.
If you open your browser's console, you'll see an error like this:
Not allowed to load local resource:
This is intentional. Chrome blocks local file access this way for security reasons. There are of course ways to get around it
This links will load on your browser.
You don't have access to local strongs.
This is web!!!!we work on browser only(with upload files too!)
we have access to directory in python,c,c#,c++,java,ruby,delphi,visual basic,....

Chrome automatically download local file

I want to view the markdown file in my Chrome browser; however when I open the local markdown file it download the file in my local directory. However, I tried with TXT file and browser address location looks - file:///C:/ that works fine though. The same approach like TXT file does not work for markdown file.
Any suggestion will be greatly appreciate. Thank you !
Chrome will not support the all content type it will support only some specified content type. If you want to show the file into your browser you need to set the headers.
Here is the GITHUB Block how they show all files
https://github.com/blog/1482-heads-up-nosniff-header-support-coming-to-chrome-and-firefox

IE 7 and 8 SSL download from simple HTML page not working, tomcat server

I have a simple HTML file which has one link to a file kept for download. The site uses SSL (self signed cert). When I click on the file to be downloaded in FF or Chrome, it works fine and saves the file on to disk.
Here is the code-
<html><body> download from here</body></html>
When I open the same page with IE 7/8, and click on the link, it gives an error saying "Internet Explorer cannot open hello.tar.gz from server"
Edit: Forgot to mention that IE 7 / 8 works fine without SSL.
Please help!
-Keshav
UPDATE: Solved the problem with a tomcat 6 configuration. Here is the link that helped me solve the problem-
http://community.eapps.com/showthread.php?p=461
IE normally downloads attachments into its "Temporary Internet Files" folder, however when the site is in HTTPS mode the attachments will not be downloaded.
Theres detailed explanation in this article.
IE and HTTPS for the whole site with a '/' as the url-pattern
Hope this helps.
Have you configured the MIME types for the file extension *.gz (or *.tar.gz)?
It sounds like IE is trying to interpret the file as gzipped HTML, instead of prompting to download it.