Image Sharing with special character in URL Fails


#1

When i try to share image with %20 in URL it fails, how do i get rid of it? Cordova SocialSharing Plugin.

URL Example: https://api.backendless.com/df1223ca-9cf4-534c-ff07-fb17e4d58700/v1/files/mega/yellowflat%20(1).jpg


#2

copy image to some another image by removing spacial character. Shaer this new Image and delete it after sharing completes


#3

i have tried to share image by renaming image from yellowflat%20(1).jpg to yellowflat(1).jpg. It works

That means with space in image name it do not share image. what can i do now? i have 10000+ image like this format in names?


#4

you may use string.replace(/[\s]/g, ‘’); to your file name before sharing