Chrome downloaded file named watch.html






















Palantir Palantir 23k 9 9 gold badges 74 74 silver badges 84 84 bronze badges. Thanks for that. I figured that was the case, just wanted to make absolutely sure. You've deleted the question you are linking. Did you resolve it? This doesn't work, at least on chrome. It just says "failed - no file" or "failed - server problem" when I tried it. BrettWoodward Can you show me what's your Chrome Version? It's OK for me. BrettWoodward this happens when href value points to page with error.

Try removing "download" attribute to check if page works without downloading. Well, Palantir's answer is, for me, the most correct way! Good Luck ; Sorry for my english. Marcel Korpel Well, Mephiztopheles's answer is, for me, the most correct way! Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.

The Overflow Blog. Podcast what if you could invest in your favorite developer? Who owns this outage?

The attribute can furthermore be given a value, to specify the filename that user agents are to use when storing the resource in a file system. For example, clicking the following link downloads the. The markup is simple:. One thing to note is that in the above example, the image has same origin with respect to website.

If you try to use a link of image from different origin the link may not work as a navigating link rather than a downloading link. This is because many versions of browser does not support the download policy on cross-origin files.

For example Chrome versions prior to 65 did allow downloading cross origin files and it was deprecated in later versions. Read this for more detail. You can use Content-Disposition header to force a download from other origin. Browser support: only the current Chrome dev channel release Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4. For details, see the Google Developers Site Policies.

Chrome correctly just downloaded your front page script file — and it has cached that result, showing it to you again and again. A simple curl invocation will confirm this, just goes to show how useful simple command-line tools can be. HTML etc. Firefox is fine, however about:preferences, settings, applications. Yeah, but if that happens for other users? How will they know to just go clear the Browsing Data? Please why download the page link when you click on it instead of displaying the note and you experience this problem in all chrome browsers And fayrfox and Microsoft edge At the same time on an Android mobile phone.

On Windows, this opens the file in Notepad. Would like to know how to read any. It started to happen to me as well, tried clearing my browser history. Still no luck, can someone help me understand why? I need to my site to work. Even i have the same problem, In my case http requests are giving problem and https no issues , I using nginx reverse proxy..

If someone can help here Thanks. Your email address will never be published. Subscribe to this comment feed via RSS.



0コメント