-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Doesn't Import External PDF if URL Contains One of " \ / < > : | ? #334
Comments
Ah definitely looks like the url containing "?article" is the problem, because If I just create a .pdf file file named "test", and then put the url into the file, it works fine. Perhaps there can be an option so when Bookmarking you can choose a name, or have it default to "new clip" or whatever. |
@RyotaUshio it also fails when drag and dropping. The main issue is trying to name the file part of the url, because the url contains "?" which obsidian doesn't allow in a filename (i.e. "Library/Inbox/viewcontent.cgi?article=358.pdf"). So even when I drag and drop, I get the same error: |
The bookmarklet on the documentation website has been updated. As for drag-drop: as you said "?" is forbidden, you are likely to be on Windows, right? https://stackoverflow.com/questions/1976007/what-characters-are-forbidden-in-windows-and-linux-directory-names I'm on mac so I didn't notice "?" in a file name was the problem. (This is why you have to fill in the Obsidian debug info section you ignored!) I will add some logic to sanitize file names. |
Will be fixed in 0.40.22 |
@RyotaUshio Windows strikes again! Thanks, sorry for the lack of debug info! And thanks for the awesome plugin! |
Steps to reproduce
Expected behavior
The PDF is imported as an external PDF.
Actual behavior
Nothing happens. It seems the plugin doesn't recognize PDFs unless there is a .pdf in the URL.
Screen recordings or screenshots
See below.
Obsidian debug info
N/A
PDF++ debug info
N/A
Error messages
Actually form the error message, it might be because the url has "?article", not necessarily that it doesn't have .pdf?
The text was updated successfully, but these errors were encountered: