Adding locally stored PDF from browser
188BET靠谱吗Is anyone aware of a way to get the Zotero browser extension to recognize locally stored PDFs as PDFs instead of as web pages?
My problem is that some sites default to downloading PDFs rather than displaying them directly in new browser tabs.188BET靠谱吗However, when I click on the downloaded PDF and open it in a new Chromium Edge tab (Windows 10), the Zotero extension doesn't recognize the file as a PDF.188BET靠谱吗Instead, it saves it to Zotero as a web page, with no attachment.
Any ideas?
My problem is that some sites default to downloading PDFs rather than displaying them directly in new browser tabs.188BET靠谱吗However, when I click on the downloaded PDF and open it in a new Chromium Edge tab (Windows 10), the Zotero extension doesn't recognize the file as a PDF.188BET靠谱吗Instead, it saves it to Zotero as a web page, with no attachment.
Any ideas?
Add-ons typically don't have access to local files loaded in the browser for security reasons, so pretty sure what you're asking can't be done.
I didn't realize that the extension couldn't access a local file, but I guess that makes sense.
188BET靠谱吗2) Not specific to Zotero in any way, but note that you never need to resize windows for something like this.188BET靠谱吗You can click and drag the file and then use Cmd-Tab to bring Zotero (or any app) to the front, and then drop the file in.See Switching Between Programsfor the basics of switching between programs efficiently.(The important point here is just that you can use those techniques in combination with dragging.)
188BET靠谱吗3) A future version of Zotero will allow you to drag files to the Dock icon as well as open PDFs via188BET靠谱吗Zotero and treat those as if you had dragged them to the current library.
This thread is about PDFs you've already downloaded to disk (shown with file:// URLs in Firefox), and as far as I know Firefox doesn't associate itself with those on any platform (as Edge does on Windows).188BET靠谱吗Those can't currently be saved via the Zotero Connector for technical reasons.
To be clear, this should only apply to a small number of PDFs — sites have to go out of their way to force PDFs to download, and the vast majority don't do so, so most PDFs should be previewed in the browser at their HTTP URLs.
A browser extension could trivially fix this.E.g., here's one(untested) that rewrites the Content-Disposition header sent by the server, which prevents this.That wouldn't address the 'download' attribute on links, which is another method, though there might be another extension that does that (and that method is less common — e.g., any from Google results would have to be Content-Disposition, because 'download' is on the link and Google doesn't do this themselves).