save-for-later icon indicating copy to clipboard operation
save-for-later copied to clipboard

Save for later is unable to open files that are stored locally

Open miam-miam opened this issue 4 years ago • 3 comments

Save for later is unable to open files that are stored locally and provides no response showing that the extension cannot do it. Is this just due to the fact that the api does not allow you to open local files?

miam-miam avatar Dec 28 '20 21:12 miam-miam

Hi @miam-miam100 , could you please share the URL to the file you are trying to save. The type of URLs saved by Save for Later are given in this line. It is a regex pattern used to match appropriate URLs.

allen505 avatar Jan 02 '21 03:01 allen505

Sure it seems to me to only be a normal file but I may be wrong: file:///D:/Documents/EPQ/Quantum_Computing_for_Computer_Scientists_-_Yanofsky-cup-2008.pdf

miam-miam avatar Jan 02 '21 18:01 miam-miam

Yes, I see your point @miam-miam100 . The extension saves the links but it does not open it. To open a local file the API used is different. This is definitely a bug on the extension's side.
Possible solution to open local files is in this Stackoverflow answer . Implementing this in the current code though seems a bit tricky. We'd have to distinguish local vs web links before opening it in this line

allen505 avatar Jan 03 '21 04:01 allen505