[RESOLVED] php move_uploaded_file without single quotes
I'm trying to move a file to my server and restrict/remove apostrophes from it.
Here's what I have now:
PHP Code:
move_uploaded_file(str_replace("'", "", $_FILES["File"]["tmp_name"]), str_replace("'", "", $target));
The script uploads a file but adds a slash instead if there's a single quote in the file name. I'd just sooner remove them from the filename before uploading the file.
Any ideas?
Thanks.
Re: php move_uploaded_file without single quotes
Check this one and see how the invalid characters are removed: http://phpsense.com/2007/php-file-uploading/
:wave:
Re: php move_uploaded_file without single quotes
Thank you very much for that link. I couldn't find anything like that. It helped solve my problem.