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

Spaces in url's gives issues #63

Closed
Ruud-cb opened this issue Aug 20, 2020 · 1 comment
Closed

Spaces in url's gives issues #63

Ruud-cb opened this issue Aug 20, 2020 · 1 comment

Comments

@Ruud-cb
Copy link

Ruud-cb commented Aug 20, 2020

Hi,
We have a lot of svg's that, unfortunately, contain spaces in there file names (loaded from external packages). This results in 404 not found errors.
In this section I added some code https://github.com/oracle/cordova-plugin-wkwebview-file-xhr/blob/master/src/ios/CDVWKWebViewFileXhr.m#L132

    uri = [uri stringByReplacingOccurrencesOfString:@" "
                                    withString:@"%20"];

Perhaps you want to add this and some other modifications.

@manish2788
Copy link
Member

I would recommend you to use encodeURI api in javascript to handle filename with spaces.

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

2 participants