182x Posted July 18, 2007 Share Posted July 18, 2007 Hey guys, I have made a small page where users can upload files and then download them from another, however if there is a space in the filename the download will not work properly. I was just wondering if thats how things are or if there is a way round this? Thanks. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 18, 2007 Share Posted July 18, 2007 You will want to add some code which converts spaces to underscores (_) in the filename of the file. Or use urlencode when you go to fetch the file. Ideally files being served should not have spaces within the filename or filepath. Quote Link to comment Share on other sites More sharing options...
trq Posted July 18, 2007 Share Posted July 18, 2007 Use urlencode() on the file names. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.