Closed dhanilan closed 7 years ago
Also tried http://localhost:19390/StaticFiles/FileName%2520WithPercentEncodedSpace.pdf . Doesn't work!
This isn't unique to %20, you'll have this problem with most escape sequences. When your file names start conflicting with URI syntax there are limits to what will be addressable. Decode the space and it will work fine.
@Tratcher I tried decoding the URI . In this case decodeURI('FileName%20WithPercentEncodedSpace.pdf') results in "FileName WithPercentEncodedSpace.pdf". but get of http://localhost:19390/StaticFiles/FileName WithPercentEncodedSpace.pdf doesn't work!!!! since the file is stored as FileName%20WithPercentEncodedSpace.pdf . I cannot change the filename because it comes from an external system.
Steps to Reproduce :