question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spaces in filename

See original GitHub issue

Hi @Elyx0 @KinanKazmi I’m trying to upload file to my server (due to your example) The example file in attachments archive images.zip

I got error from RNFS library during the preparing real path

<Warning>: Failed to open target file at path: file:///Users/anastasiiak/Library/Developer/CoreSimulator/Devices/deviceID/data/Containers/Data/Application/appID/tmp/org.app/archive%20images.zip

Could you explain how to fix this problem? Thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:5

github_iconTop GitHub Comments

2reactions
KristoferEngcommented, Mar 3, 2017

Try: decodeURIComponent(name) for the name of the file.

1reaction
kidequinoxcommented, Jun 14, 2018

On iphone8 and above, I needed to

imafeRef.put(decodeURIComponent(uri), { contentType: mime })

for it to upload files with spaces in the name.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Dealing With Spaces in Filenames in Linux - Linux Handbook
Read a file with spaces in filename ... Basically, you put a \ before every space in the filename. You could also use...
Read more >
How to reference filename with spaces in Linux
It becomes challenging, especially to access a path that has a folder with “space” in its name. So, the easiest way is to...
Read more >
Is space not allowed in a filename? - Unix StackExchange
Spaces, and indeed every character except / and NUL, are allowed in filenames. The recommendation to not use spaces in filenames comes from ......
Read more >
How to Read a Filename with Spaces in Linux - LinuxOPsys
If you want to view such a file with space in the file name, use the same principle of enclosing the file names...
Read more >
Why shouldn't spaces be used in filenames on the computer?
You shouldn't use spaces (or other special characters like tab, bel, backspace, del, etc.) in filenames because there are STILL so many badly...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found