Hi All,
I have a problem I hope you can help me with...
I am running windows, IIS5.
I have an upload form, where the user is allowed to browse for a file to upload.($_FILES['file1']['name']) I then use a php script to put the filename that they choose in a cookie and retrieve it later..
My problem occurs when there is a space in the filename. PHP automatically uses the 'application/x- media type' and therfore replaces spaces with +
I have tried to use rawurlencode before I add the filename to the cookie...but it I still get +'s
Is there an easy way I can maybe strip the filename($_FILES['file1']['name'])of spaces before it gets uploaded?
Any ideas?
Thanks for your help!
Regards,
P
I have a problem I hope you can help me with...
I am running windows, IIS5.
I have an upload form, where the user is allowed to browse for a file to upload.($_FILES['file1']['name']) I then use a php script to put the filename that they choose in a cookie and retrieve it later..
My problem occurs when there is a space in the filename. PHP automatically uses the 'application/x- media type' and therfore replaces spaces with +
I have tried to use rawurlencode before I add the filename to the cookie...but it I still get +'s
Is there an easy way I can maybe strip the filename($_FILES['file1']['name'])of spaces before it gets uploaded?
Any ideas?
Thanks for your help!
Regards,
P