-
Notifications
You must be signed in to change notification settings - Fork 4
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
Comments
I assume you use the 'file=' option? space are replaced in url encoding with '%20' |
Yes using file= option. Removing spaces in name works well. I tried surrounding with "", but that did not work too. Are you sure you replaced spaces with %20??? Dit you really apply url encoding? Finding the file with %20 in name might not work well in all cases!Verzonden vanaf Outlook voor Android
|
pdfjs expect an URL encoded URL. here I do urlencoding so I would expect it to work. pdfviewer/content_plugin/pdfviewer.php Line 363 in f06d4d7
I have to test why it not works. |
Something goes wrong with encoding!
When I replace space with %20 then it works.
Deliberate name mismatch works in then not finding file.
Without any space in name it works.
From: Tazzios ***@***.***>
Sent: vrijdag 19 januari 2024 19:51
To: Tazzios/pdfviewer ***@***.***>
Cc: Leo van der Hoek ***@***.***>; Author ***@***.***>
Subject: Re: [Tazzios/pdfviewer] Cannot find file with space(s) in name. (Issue #32)
pdfjs expect an URL encoded URL. here I do urlencoding so I would expect it to work.
https://github.com/Tazzios/pdfviewer/blob/f06d4d7edba44b4cfc02c14fe993b39ec3c7d014/content_plugin/pdfviewer.php#L363
I have to test why it not works.
—
Reply to this email directly, view it on GitHub <#32 (comment)> , or unsubscribe <https://github.com/notifications/unsubscribe-auth/ADZUAX7PDQIKONUNKN4GHBLYPK57TAVCNFSM6AAAAABCB62MPGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBQHEZTOMJTG4> .
You are receiving this because you authored the thread. <https://github.com/notifications/beacon/ADZUAXZL3P56J5TH4NN4Y33YPK57TA5CNFSM6AAAAABCB62MPGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTRJX73C.gif> Message ID: ***@***.*** ***@***.***> >
|
Hi all, |
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?
The text was updated successfully, but these errors were encountered: