Skip to content
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

Cannot find file with space(s) in name. #32

Open
hoekbrwr opened this issue Jan 19, 2024 · 5 comments
Open

Cannot find file with space(s) in name. #32

hoekbrwr opened this issue Jan 19, 2024 · 5 comments

Comments

@hoekbrwr
Copy link

hoekbrwr commented Jan 19, 2024

I try to display this file which contains spaces in the filename and it just does not display any content.
Are there more limitations like special characters? Can I use underscore?

@Tazzios
Copy link
Owner

Tazzios commented Jan 19, 2024

I assume you use the 'file=' option? space are replaced in url encoding with '%20'

@hoekbrwr
Copy link
Author

hoekbrwr commented Jan 19, 2024 via email

@Tazzios
Copy link
Owner

Tazzios commented Jan 19, 2024

pdfjs expect an URL encoded URL. here I do urlencoding so I would expect it to work.

$filelink = urlencode($filelink);

I have to test why it not works.

@hoekbrwr
Copy link
Author

hoekbrwr commented Jan 19, 2024 via email

@joshercartifes
Copy link

Hi all,
I have a similar problem, I removed the spaces from the name, but it shows an empty pdf. I included in the article in Joomla
{pdfviewer file="full_path_to_pdf"}.
I checked the full path to pdf is working in the browser and it shows the PDF. I do not why the embed viewer is not showing anything.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants