Hello,
I have got a script that allows users to upload files to my website. The File name, file path etc is all stored in a MySQL database.
I am having one problem though, when a user uploads a file which has a file name that has a space within it, then the file_path in the database does not get stored correctly.
For example, If a user uploads a file called "My Picture.jpg", the file_path will be "/uploadedfiles/My"
But if the file is name "MyPicture.jpg", the file_path is stored correctly as "/uploadedfiles/MyPicture.jpg".
I know that I need to use the %20 function, but I dont know how. How do you specifiy before the file_path is stored in the database to replace all spaces with %20!
Any help would be much appreciated