How to embed a .zip file for downloading in an html document? - html

I have a simple html document locally on my computer that looks like this:
<!DOCTYPE html>
<html>
<h3>
Python Script that partially automates sending my work hours to my boss.
</h3>
download
</html>
In the folder containing this file, I have the automate_emails.zip. When I open this html locally on my computer clicking download works as expected- the .zip downloads. However, when I email the html document to myself, the download no longer works (I think?) because I am now opening the html document from the cloud where it no longer has access to the automate_emails.zip.
How do I fix this so the webpage will have access to the .zip file even when it is not opened locally? Do I need a hosting service for this?

You obviously need to host upload that document somewehere online.
The easiest way would be to host the website and upload the .zip file as well.

Related

How does the browser know from where to a open a another html page locally?

How does a browser know to open another html page inside the folder that our index.html is located?
We are opening only the file not all the folder right?
What i mean is how the browser fetches the files when we are not using a online url...

Save excel file containing links as html, and these links open in file explorer, not web browser

I have an excel sheet with links to local folders. To make it more device "friendly" I save it as html. All is fine, but the links open on the web browser, not windows file explorer.
I know that html does not open aps, but I do not know if opening a local folder with windows file explorer is considered an app, or I miss something.
Excel: =hyperlink("c:\testfolder")
Of course another suggestion on the matter is welcome...
add file:// to the link
=hyperlink("file://c:\testfolder")

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.

Blank page when uploading website files to web hoster

So I downloaded my own portfolio after making it through a portfolio maker and decided to download it, modify the html files to my liking and then wanted to upload them to a web hoster where I would use my own domain for it, however when I tried uploading my files to the main folder on my website's directory and check the website out it simply shows me a blank page, even though it actually displays my logo on the tab on top. When I open the index.html with Chrome from my local files it displays my website perfectly however when I upload it to my website and try view it that's when I get a problem. I have tried using 2 different web hosters and tried uploading my files through FTP and direct upload and still got the same blank page.
NOTE: I uploaded all the files in my site folder not just the index.html and if it works when I opened it with Chrome I don't see why it wouldn't work on my website.
It looks like you have forgotten to upload some files:
All the ones marked 404 are missing and need to be uploaded.

HTML object tag not displaying pdf file on localhost (XAMPP)

I want to display pdf file on web page with tag. It’s working well on normal directory and live server.
<object style="width:450px;height:380px" data="admissionform.pdf"></object>
Screenshot of Output in normal directory
But same file and same code when I replace it on localhost. The pdf file not displaying. The browser or download manager switching to download the pdf file.
Screenshot of Output in localhost
<object style="width:450px;height:380px" data="admissionform.pdf"></object>
Today I run my script on a localhost on a Linux desktop PC. And the pdf file is displaying well.
But still, Now I try to find out why my embed pdf with HTML object tag is not working in windows operating system