I have a little piece of code that writes a file name and afterwards zips this automatically. Not visible but during this he include a hard return in the name of the file.
When uploading this to a webserver a apache server seems this and when a user likes to download the file, he can't find it, because there is a hard return in it.
Why is a hard return included and how can we avoid this or delete this. I have tried trim() but this is only for spaces. Perhaps a replace function ?
When uploading this to a webserver a apache server seems this and when a user likes to download the file, he can't find it, because there is a hard return in it.
Why is a hard return included and how can we avoid this or delete this. I have tried trim() but this is only for spaces. Perhaps a replace function ?