Download file opends tab in chrome
An image of the jQuery website and the link I clicked on Sry I still can't embed images yet so it's a link. Here's an image of the tab chrome opens when I click on the link.
At least for files that aren't HTML, you'll get the same result as if the file automatically downloaded. Stack Overflow for Teams — Collaborate and share knowledge with a private group.
Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Chrome opens download links in a new tab as a file instead of downloading the file on mac os Ask Question. Asked 1 year, 8 months ago. Active 1 year, 8 months ago. Viewed 5k times. An image of the jQuery website and the link I clicked on Sry I still can't embed images yet so it's a link Here's an image of the tab chrome opens when I click on the link BTW this also happens if I use Safari so I'm not sure if it's a problem with chrome or macs.
Normally, I think it will only need to restart the inspector, not entire Chrome if it is already opened at the installing time , I should add a note to the instruction later on. Thank you. It would be much appreciated if you update the extension, so it can download prettified code.
The feature is now on my Github Repo, though that I think it is easy to do by few Gulp coding lines. Show 8 more comments. Currently not possible. Adam Finley Adam Finley 1, 1 1 gold badge 14 14 silver badges 27 27 bronze badges.
Have you found any workaround though? Share, please. Works on OSX. Abhi Krishnan Abhi Krishnan 1 1 silver badge 2 2 bronze badges. You can also just do command-s. This will save the page and all the files, but you'll lose the folder structure. Using the browser's built in "Save page as That is exactly what upd's extension does see answer above.
Doens't include source maps though — Chet. The Overflow Blog. Who owns this outage? If for whatever reason, you cannot add the download attribute in the case that you cannot directly edit the HTML of your web page , you can optionally compress the file using zip, and instruct the user to download the zip file. You can alternatively explain to the user that they should right click on the link and select download. If you have no other alternatives to force the file to download, you can host it on a file hosting service such as Google Docs.
The most common file types that are affected by this behavior are PDF files and images. The code below will tell the browser to prompt the user to save the file. This link does not have the download attribute. This link has the download attribute.