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. Link to comment https://forums.phpfreaks.com/topic/60595-file-issue/ 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. Link to comment https://forums.phpfreaks.com/topic/60595-file-issue/#findComment-301445 Share on other sites More sharing options...
trq Posted July 18, 2007 Share Posted July 18, 2007 Use urlencode() on the file names. Link to comment https://forums.phpfreaks.com/topic/60595-file-issue/#findComment-301446 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.