H
hartbypass
Hello all,
I have a small piece of code that goes and gets the files in a
directory and displays them as hyperlinks on a webpage so people can
access those files. I am running into an issue where is the filename
has a space it breaks the link. Meaning if have /Docs/Files/My First
File.pdf, all I get in the link is /Docs/Files/My
I thouht maybe I needed to somehow parse the file and replace spaces
with %20, but I am not sure. I would like to find a solution other
than Don't have spaces in the file name.
Thanks,
Greg
I have a small piece of code that goes and gets the files in a
directory and displays them as hyperlinks on a webpage so people can
access those files. I am running into an issue where is the filename
has a space it breaks the link. Meaning if have /Docs/Files/My First
File.pdf, all I get in the link is /Docs/Files/My
I thouht maybe I needed to somehow parse the file and replace spaces
with %20, but I am not sure. I would like to find a solution other
than Don't have spaces in the file name.
Thanks,
Greg